Click here to Skip to main content
15,886,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen24-Aug-13 7:18
professionalEddy Vluggen24-Aug-13 7:18 
GeneralRe: Is try - catch block advisable? Pin
jschell26-Aug-13 8:43
jschell26-Aug-13 8:43 
GeneralRe: Is try - catch block advisable? Pin
OriginalGriff24-Aug-13 1:38
mveOriginalGriff24-Aug-13 1:38 
GeneralRe: Is try - catch block advisable? Pin
Abhinav S24-Aug-13 2:07
Abhinav S24-Aug-13 2:07 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen24-Aug-13 2:39
professionalEddy Vluggen24-Aug-13 2:39 
GeneralRe: Is try - catch block advisable? Pin
OriginalGriff24-Aug-13 2:43
mveOriginalGriff24-Aug-13 2:43 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen24-Aug-13 2:54
professionalEddy Vluggen24-Aug-13 2:54 
GeneralRe: Is try - catch block advisable? Pin
jschell26-Aug-13 8:53
jschell26-Aug-13 8:53 
Eddy Vluggen wrote:
Imagine medical software being like that, and using the "default gender" if that
information is lost after an exception on a conversion.


Ridiculous analogy.

Computers are deterministic even if it seems random at times. Catastrophic system failures in code that has even a reasonable amount of quality control are rare. Even rarer to happen in production. What happens much more are unexpected but normal errors. And at least in 24x7 servers (which you don't seem to be describing) it can't just quit because of an little known and non-tested data path results in a null pointer exception.

When catastrophic errors do occur they are, oddly enough, catastrophic. They cause the entire system to fail and it is obvious.

So you are hypothesizing some extremely rare circumstances where such an error allows the system to keep running yet corrupts the entire system completely such that there are no other validation checks that would catch anything (my code has validation checks.) And that just is not reasonable when compared to unexpected conditions which can be ignored and which occur much more often.
AnswerRe: Is try - catch block advisable? Pin
Brian Holsen25-Aug-13 18:18
Brian Holsen25-Aug-13 18:18 
AnswerRe: Is try - catch block advisable? Pin
V.26-Aug-13 3:11
professionalV.26-Aug-13 3:11 
QuestionGet User Privileges in a machine for a specific user Pin
Rijz22-Aug-13 20:10
Rijz22-Aug-13 20:10 
AnswerRe: Get User Privileges in a machine for a specific user Pin
Richard MacCutchan22-Aug-13 21:00
mveRichard MacCutchan22-Aug-13 21:00 
QuestionIndexOf Question Pin
AnalogNerd22-Aug-13 5:16
AnalogNerd22-Aug-13 5:16 
AnswerRe: IndexOf Question Pin
fjdiewornncalwe22-Aug-13 5:25
professionalfjdiewornncalwe22-Aug-13 5:25 
GeneralRe: IndexOf Question Pin
AnalogNerd22-Aug-13 5:33
AnalogNerd22-Aug-13 5:33 
AnswerRe: IndexOf Question PinPopular
PIEBALDconsult22-Aug-13 5:49
mvePIEBALDconsult22-Aug-13 5:49 
GeneralRe: IndexOf Question Pin
AnalogNerd22-Aug-13 5:53
AnalogNerd22-Aug-13 5:53 
QuestionDataSet parse date "dd/mm/yyyy" Pin
juliogyn22-Aug-13 5:09
juliogyn22-Aug-13 5:09 
AnswerRe: DataSet parse date "dd/mm/yyyy" Pin
Eddy Vluggen22-Aug-13 6:08
professionalEddy Vluggen22-Aug-13 6:08 
GeneralRe: DataSet parse date "dd/mm/yyyy" Pin
juliogyn22-Aug-13 9:52
juliogyn22-Aug-13 9:52 
AnswerRe: DataSet parse date "dd/mm/yyyy" Pin
fjdiewornncalwe22-Aug-13 10:17
professionalfjdiewornncalwe22-Aug-13 10:17 
GeneralRe: DataSet parse date "dd/mm/yyyy" Pin
juliogyn22-Aug-13 12:25
juliogyn22-Aug-13 12:25 
AnswerRe: DataSet parse date "dd/mm/yyyy" Pin
Forbiddenx23-Aug-13 2:21
Forbiddenx23-Aug-13 2:21 
GeneralRe: DataSet parse date "dd/mm/yyyy" Pin
juliogyn26-Aug-13 2:28
juliogyn26-Aug-13 2:28 
GeneralWindows Forms or WPF? Pin
N8tiv21-Aug-13 22:27
N8tiv21-Aug-13 22:27 

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.