Click here to Skip to main content
15,889,034 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting CurrentException without catch: use Marshal.GetExceptionCode() Pin
Daniel Grunwald23-Nov-09 13:07
Daniel Grunwald23-Nov-09 13:07 
GeneralRe: Getting CurrentException without catch: use Marshal.GetExceptionCode() Pin
Paulo Zemek23-Nov-09 13:12
mvaPaulo Zemek23-Nov-09 13:12 
QuestionParameterless catch? Pin
Etienne_12323-Nov-09 0:20
Etienne_12323-Nov-09 0:20 
AnswerRe: Parameterless catch? PinPopular
dojohansen23-Nov-09 0:23
dojohansen23-Nov-09 0:23 
AnswerRe: Parameterless catch? Pin
Richard MacCutchan23-Nov-09 0:24
mveRichard MacCutchan23-Nov-09 0:24 
GeneralRe: Parameterless catch? Pin
Etienne_12323-Nov-09 0:29
Etienne_12323-Nov-09 0:29 
GeneralRe: Parameterless catch? Pin
dan!sh 23-Nov-09 0:35
professional dan!sh 23-Nov-09 0:35 
GeneralRe: Parameterless catch? Pin
dojohansen23-Nov-09 1:03
dojohansen23-Nov-09 1:03 
Presumably your program is supposed to *do* something, not merely "not crash". All that can be achieved by catching exceptions and doing nothing about them is to prevent the program from exiting because of the error. But there's a reason why programs exit by default when errors occur: The program state is no longer well known. Programs close by default in order to prevent a program from *seeming* to work but actually producing corrupt data.

If you are getting exceptions a lot of the time without any associated external reason (hardware failure, network failure, out of disk space/memory, and so on) it just means your code isn't correct, and you should take the time to find out what's wrong with it and correct it.
GeneralRe: Parameterless catch? Pin
Luc Pattyn23-Nov-09 1:10
sitebuilderLuc Pattyn23-Nov-09 1:10 
GeneralRe: Parameterless catch? Pin
Richard MacCutchan23-Nov-09 2:04
mveRichard MacCutchan23-Nov-09 2:04 
GeneralRe: Parameterless catch? Pin
Eddy Vluggen23-Nov-09 2:21
professionalEddy Vluggen23-Nov-09 2:21 
GeneralRe: Parameterless catch? Pin
Saksida Bojan23-Nov-09 6:15
Saksida Bojan23-Nov-09 6:15 
GeneralRe: Parameterless catch? Pin
Eddy Vluggen23-Nov-09 7:46
professionalEddy Vluggen23-Nov-09 7:46 
GeneralRe: Parameterless catch? Pin
OriginalGriff23-Nov-09 4:13
mveOriginalGriff23-Nov-09 4:13 
GeneralRe: Parameterless catch? Pin
Luc Pattyn23-Nov-09 10:10
sitebuilderLuc Pattyn23-Nov-09 10:10 
AnswerRe: Parameterless catch? Pin
Shameel23-Nov-09 2:05
professionalShameel23-Nov-09 2:05 
AnswerRe: Parameterless catch? Pin
Christian Graus23-Nov-09 2:21
protectorChristian Graus23-Nov-09 2:21 
GeneralRe: Parameterless catch? Pin
Richard MacCutchan23-Nov-09 3:12
mveRichard MacCutchan23-Nov-09 3:12 
GeneralRe: Parameterless catch? Pin
Etienne_12323-Nov-09 3:51
Etienne_12323-Nov-09 3:51 
GeneralRe: Parameterless catch? Pin
Richard MacCutchan23-Nov-09 4:25
mveRichard MacCutchan23-Nov-09 4:25 
GeneralRe: Parameterless catch? Pin
Luc Pattyn23-Nov-09 10:14
sitebuilderLuc Pattyn23-Nov-09 10:14 
QuestionUSB to Parallel Pin
Darren Shields23-Nov-09 0:03
Darren Shields23-Nov-09 0:03 
AnswerRe: USB to Parallel Pin
Natza Mitzi23-Nov-09 2:05
Natza Mitzi23-Nov-09 2:05 
AnswerRe: USB to Parallel Pin
The Man from U.N.C.L.E.23-Nov-09 2:41
The Man from U.N.C.L.E.23-Nov-09 2:41 
QuestionUsing Function Keys Pin
khosnur22-Nov-09 21:55
khosnur22-Nov-09 21:55 

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.