Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to change BG color of tree node on click event Pin
rfresh25-Aug-13 5:45
rfresh25-Aug-13 5:45 
QuestionAdded 'Menu' to VS 2012 Express toolbox but its disabled Pin
rfresh23-Aug-13 16:30
rfresh23-Aug-13 16:30 
Questionsettings.settings property is read-only? Pin
rfresh23-Aug-13 10:11
rfresh23-Aug-13 10:11 
AnswerRe: settings.settings property is read-only? Pin
BillWoodruff23-Aug-13 14:23
professionalBillWoodruff23-Aug-13 14:23 
GeneralRe: settings.settings property is read-only? Pin
rfresh23-Aug-13 14:35
rfresh23-Aug-13 14:35 
GeneralRe: settings.settings property is read-only? Pin
rfresh23-Aug-13 16:08
rfresh23-Aug-13 16:08 
GeneralRe: settings.settings property is read-only? Pin
Ron Beyer23-Aug-13 16:27
professionalRon Beyer23-Aug-13 16:27 
GeneralRe: settings.settings property is read-only? Pin
rfresh23-Aug-13 16:31
rfresh23-Aug-13 16:31 
GeneralRe: settings.settings property is read-only? Pin
Richard MacCutchan23-Aug-13 21:52
mveRichard MacCutchan23-Aug-13 21:52 
QuestionIs try - catch block advisable? Pin
Srinivas Kalabarigi22-Aug-13 23:38
professionalSrinivas Kalabarigi22-Aug-13 23:38 
AnswerRe: Is try - catch block advisable? Pin
Eddy Vluggen23-Aug-13 0:58
professionalEddy Vluggen23-Aug-13 0:58 
GeneralRe: Is try - catch block advisable? Pin
Srinivas Kalabarigi23-Aug-13 1:13
professionalSrinivas Kalabarigi23-Aug-13 1:13 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen23-Aug-13 1:58
professionalEddy Vluggen23-Aug-13 1:58 
GeneralRe: Is try - catch block advisable? Pin
jschell23-Aug-13 13:15
jschell23-Aug-13 13:15 
AnswerRe: Is try - catch block advisable? Pin
SaqibRasheed23-Aug-13 1:48
SaqibRasheed23-Aug-13 1:48 
AnswerRe: Is try - catch block advisable? Pin
Forbiddenx23-Aug-13 2:18
Forbiddenx23-Aug-13 2:18 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen23-Aug-13 2:42
professionalEddy Vluggen23-Aug-13 2:42 
GeneralRe: Is try - catch block advisable? Pin
Forbiddenx23-Aug-13 3:15
Forbiddenx23-Aug-13 3:15 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen23-Aug-13 5:01
professionalEddy Vluggen23-Aug-13 5:01 
GeneralRe: Is try - catch block advisable? Pin
Forbiddenx23-Aug-13 6:37
Forbiddenx23-Aug-13 6:37 
I think we are misunderstanding each other.

I do use specific exceptions but at times I also use the generic all exceptions..
But, I also bomb out if I use the generic all exception and stop everything in its tracks.

C#
catch (Exception exc) 
{
log it, or present it to the user exc...
BOMB OUT.... alert.. done.
I never resume operation that would be bad!
}


I only resume operation if I
C#
catch (ExceptionTYPE exc)
{
try to recover..
}


Yes, it does add some extra code, but it is better then resuming you want to log any exception that occurs globally.
=)

GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen24-Aug-13 2:49
professionalEddy Vluggen24-Aug-13 2:49 
GeneralRe: Is try - catch block advisable? Pin
PIEBALDconsult23-Aug-13 18:55
mvePIEBALDconsult23-Aug-13 18:55 
GeneralRe: Is try - catch block advisable? Pin
jschell23-Aug-13 13:16
jschell23-Aug-13 13:16 
GeneralRe: Is try - catch block advisable? Pin
PIEBALDconsult23-Aug-13 18:55
mvePIEBALDconsult23-Aug-13 18:55 
AnswerRe: Is try - catch block advisable? Pin
Ennis Ray Lynch, Jr.23-Aug-13 3:13
Ennis Ray Lynch, Jr.23-Aug-13 3:13 

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.