Click here to Skip to main content
15,868,080 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is try - catch block advisable? Pin
OriginalGriff24-Aug-13 2:40
mveOriginalGriff24-Aug-13 2:40 
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 
OriginalGriff wrote:
And yes, I'd rather see my app die, than pretend nothing happened (and have it continue with corrupted data that gets saved later)
I do not advocate there that one should not handle exceptions. "Do or die" means that I'll try to close the app as gracefully as possible, with an apoligy to the user that an exception occured.

OriginalGriff wrote:
I'd rather have them complain once and explain that it's a bug that will never resurface
Does still not mean that I do not have a global exception handler; it's implemented, but it does not "hide" exceptions and pretend all is well. It get's logged, and once investigated, one can easily push an update that ignores that specific exception if that's safe.

Imagine medical software being like that, and using the "default gender" if that information is lost after an exception on a conversion.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: Is try - catch block advisable? Pin
jschell26-Aug-13 8:53
jschell26-Aug-13 8:53 
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 

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.