Click here to Skip to main content
15,888,113 members
Home / Discussions / C#
   

C#

 
GeneralRe: try/catch fails ? Pin
Christian Graus9-Jun-05 14:24
protectorChristian Graus9-Jun-05 14:24 
GeneralRe: try/catch fails ? Pin
MoustafaS9-Jun-05 14:27
MoustafaS9-Jun-05 14:27 
GeneralRe: try/catch fails ? Pin
Christian Graus9-Jun-05 14:31
protectorChristian Graus9-Jun-05 14:31 
GeneralRe: try/catch fails ? Pin
MoustafaS9-Jun-05 14:45
MoustafaS9-Jun-05 14:45 
GeneralRe: try/catch fails ? Pin
Christian Graus9-Jun-05 14:50
protectorChristian Graus9-Jun-05 14:50 
AnswerRe: try/catch fails ? Pin
Luis Alonso Ramos9-Jun-05 15:45
Luis Alonso Ramos9-Jun-05 15:45 
GeneralRe: try/catch fails ? Pin
Christian Graus9-Jun-05 15:47
protectorChristian Graus9-Jun-05 15:47 
GeneralRe: try/catch fails ? Pin
mav.northwind9-Jun-05 20:13
mav.northwind9-Jun-05 20:13 
BTW., I've seen a discussion on try/catch not catching exceptions occurring in a form, although the matching ShowDialog() was enclosed in a try/catch block.

This doesn't happen when you run the application from VS, but when your client executes the application without VS, the execeptions won't get caught Frown | :(
The solution is to add a ThreadException handler in the class showing the dialog and to re-throw the exception there.
Don't ask me why this has to be done exactly (someone from M$ tried explaining in a newsgroup), but it's working.

Regards,
mav
GeneralRe: try/catch fails ? Pin
Gary Kirkham13-Oct-05 6:54
Gary Kirkham13-Oct-05 6:54 
AnswerRe: try/catch fails ? Pin
Luis Alonso Ramos13-Oct-05 7:10
Luis Alonso Ramos13-Oct-05 7:10 
GeneralRe: try/catch fails ? Pin
Gary Kirkham13-Oct-05 8:07
Gary Kirkham13-Oct-05 8:07 
GeneralRe: try/catch fails ? Pin
Luis Alonso Ramos13-Oct-05 8:13
Luis Alonso Ramos13-Oct-05 8:13 
GeneralRe: try/catch fails ? Pin
Gary Kirkham13-Oct-05 8:17
Gary Kirkham13-Oct-05 8:17 
QuestionHow to gracefully handle program crashing when executed using Process object Pin
xdansmith9-Jun-05 13:36
xdansmith9-Jun-05 13:36 
AnswerRe: How to gracefully handle program crashing when executed using Process object Pin
nemopeti10-Jun-05 2:03
nemopeti10-Jun-05 2:03 
GeneralRe: How to gracefully handle program crashing when executed using Process object Pin
xdansmith10-Jun-05 9:12
xdansmith10-Jun-05 9:12 
GeneralCOM interop question Pin
Christian Graus9-Jun-05 12:49
protectorChristian Graus9-Jun-05 12:49 
GeneralRe: COM interop question Pin
Dave Kreskowiak9-Jun-05 14:52
mveDave Kreskowiak9-Jun-05 14:52 
GeneralRe: COM interop question Pin
Christian Graus9-Jun-05 14:56
protectorChristian Graus9-Jun-05 14:56 
GeneralRe: COM interop question Pin
Dave Kreskowiak9-Jun-05 16:08
mveDave Kreskowiak9-Jun-05 16:08 
GeneralRe: COM interop question Pin
Christian Graus9-Jun-05 16:15
protectorChristian Graus9-Jun-05 16:15 
GeneralGC Pin
devin1239-Jun-05 12:48
devin1239-Jun-05 12:48 
GeneralRe: GC Pin
Christian Graus9-Jun-05 13:01
protectorChristian Graus9-Jun-05 13:01 
GeneralRe: GC Pin
devin1239-Jun-05 13:06
devin1239-Jun-05 13:06 
GeneralRe: GC Pin
Christian Graus9-Jun-05 13:10
protectorChristian Graus9-Jun-05 13:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.