Click here to Skip to main content
16,021,580 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to change color (combo,Text etc) when enable=false Pin
Marco Bertschi12-Oct-12 4:53
protectorMarco Bertschi12-Oct-12 4:53 
GeneralRe: How to change color (combo,Text etc) when enable=false Pin
himmubhai12-Oct-12 6:13
himmubhai12-Oct-12 6:13 
QuestionCan someone explain this... Pin
DanielSheets12-Oct-12 2:34
DanielSheets12-Oct-12 2:34 
AnswerRe: Can someone explain this... Pin
Eddy Vluggen12-Oct-12 2:38
professionalEddy Vluggen12-Oct-12 2:38 
GeneralRe: Can someone explain this... Pin
DanielSheets12-Oct-12 2:40
DanielSheets12-Oct-12 2:40 
GeneralRe: Can someone explain this... Pin
Eddy Vluggen12-Oct-12 2:51
professionalEddy Vluggen12-Oct-12 2:51 
GeneralRe: Can someone explain this... Pin
DanielSheets12-Oct-12 2:55
DanielSheets12-Oct-12 2:55 
GeneralRe: Can someone explain this... Pin
OriginalGriff12-Oct-12 3:52
mveOriginalGriff12-Oct-12 3:52 
This code:
C#
try
 {
     ...
 }
 catch (Exception e)
 {
 }
is called "swallowing an exception", because whatever error occurs in the try block will be caught by the catch block and discarded without any attempt to handle it, log it, or in any other way acknowledge that there is a problem that should be fixed, or at least investigated.

This is considered a poor programming practice, as it just masks problems that may become serious later. There can (occasionally) be a good reasons for ignoring specific exceptions, but these should be restricted to specific exception classes (such as ArgumentNullException, or FileLoadException) rather than a blanket "Exception" and commented thoroughly.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: Can someone explain this... Pin
DanielSheets19-Oct-12 1:31
DanielSheets19-Oct-12 1:31 
GeneralRe: Can someone explain this... Pin
OriginalGriff19-Oct-12 1:35
mveOriginalGriff19-Oct-12 1:35 
GeneralRe: Can someone explain this... Pin
Bernhard Hiller12-Oct-12 3:14
Bernhard Hiller12-Oct-12 3:14 
GeneralRe: Can someone explain this... Pin
Alan N12-Oct-12 7:04
Alan N12-Oct-12 7:04 
AnswerRe: Can someone explain this... Pin
V.12-Oct-12 3:22
professionalV.12-Oct-12 3:22 
QuestionHow to Check Printer Status using SNMP and c# Pin
batuhan karaduman11-Oct-12 22:14
batuhan karaduman11-Oct-12 22:14 
AnswerRe: How to Check Printer Status using SNMP and c# Pin
OriginalGriff12-Oct-12 1:52
mveOriginalGriff12-Oct-12 1:52 
AnswerRe: How to Check Printer Status using SNMP and c# Pin
Eddy Vluggen12-Oct-12 1:54
professionalEddy Vluggen12-Oct-12 1:54 
QuestionOpinion on Exception Pin
Richard Andrew x6411-Oct-12 15:04
professionalRichard Andrew x6411-Oct-12 15:04 
AnswerRe: Opinion on Exception Pin
Richard MacCutchan11-Oct-12 21:14
mveRichard MacCutchan11-Oct-12 21:14 
GeneralRe: Opinion on Exception Pin
Stephen Hewitt12-Oct-12 2:06
Stephen Hewitt12-Oct-12 2:06 
GeneralRe: Opinion on Exception Pin
Richard MacCutchan12-Oct-12 8:54
mveRichard MacCutchan12-Oct-12 8:54 
QuestionRe: Opinion on Exception Pin
Eddy Vluggen12-Oct-12 1:57
professionalEddy Vluggen12-Oct-12 1:57 
QuestionDisabling button not working Pin
MichCl11-Oct-12 8:13
MichCl11-Oct-12 8:13 
AnswerRe: Disabling button not working Pin
Pete O'Hanlon11-Oct-12 8:21
mvePete O'Hanlon11-Oct-12 8:21 
GeneralRe: Disabling button not working Pin
MichCl15-Oct-12 2:24
MichCl15-Oct-12 2:24 
GeneralRe: Disabling button not working Pin
Pete O'Hanlon15-Oct-12 2:26
mvePete O'Hanlon15-Oct-12 2:26 

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.