Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bitmap display problem Pin
User 66588-Jan-09 10:46
User 66588-Jan-09 10:46 
GeneralRe: Bitmap display problem Pin
Luc Pattyn8-Jan-09 10:50
sitebuilderLuc Pattyn8-Jan-09 10:50 
QuestionUpdating DataBase with DataTable & TableAdapte problem ? Pin
Mohammad Dayyan8-Jan-09 9:31
Mohammad Dayyan8-Jan-09 9:31 
QuestionExceptions Pin
CodingYoshi8-Jan-09 8:52
CodingYoshi8-Jan-09 8:52 
GeneralRe: Exceptions Pin
Luc Pattyn8-Jan-09 10:02
sitebuilderLuc Pattyn8-Jan-09 10:02 
GeneralRe: Exceptions Pin
CodingYoshi8-Jan-09 10:16
CodingYoshi8-Jan-09 10:16 
GeneralRe: Exceptions Pin
Luc Pattyn8-Jan-09 10:28
sitebuilderLuc Pattyn8-Jan-09 10:28 
GeneralRe: Exceptions Pin
Jason C Bourne8-Jan-09 10:31
Jason C Bourne8-Jan-09 10:31 
Exception handling is by definition about HANDLING an exception. When you want to display a friendly message, you are not handling anything. Handling an exception is for example retrying a connection to a remote machine after a timeout exception. This is real exception handling. Another form of exception handling is finding an alternative in case of disk I/O problem... writing on another disk or requesting the user to free some space for example.

Any other thing that you might want to do, like logging or displaying a message, should be placed at one single location within your application, potentially the application controller. This "application host" component (it can be your Program.cs as well...) is supposed to do something (log, display a popup, exit the application or close the form, or whatever you think may be appropriate). But it can terminate as well, it is up to you to decide when your application is stable, and when it is not.

Exception handling means what it says, you handle an exception when you can do something with it, otherwise you leave it going up the stack till it reaches the entry point.

JC

Jean-Christophe Grégoire

GeneralRe: Exceptions Pin
CodingYoshi8-Jan-09 10:57
CodingYoshi8-Jan-09 10:57 
GeneralRe: Exceptions Pin
Colin Angus Mackay8-Jan-09 11:18
Colin Angus Mackay8-Jan-09 11:18 
GeneralRe: Exceptions Pin
Jason C Bourne8-Jan-09 11:21
Jason C Bourne8-Jan-09 11:21 
GeneralRe: Exceptions Pin
Colin Angus Mackay8-Jan-09 10:41
Colin Angus Mackay8-Jan-09 10:41 
AnswerRe: Exceptions Pin
HosamAly8-Jan-09 10:37
HosamAly8-Jan-09 10:37 
AnswerRe: Exceptions Pin
Colin Angus Mackay8-Jan-09 10:37
Colin Angus Mackay8-Jan-09 10:37 
QuestionDefaultValue() attribute problem Pin
xJorDyx8-Jan-09 8:48
xJorDyx8-Jan-09 8:48 
AnswerRe: DefaultValue() attribute problem Pin
DaveyM698-Jan-09 8:58
professionalDaveyM698-Jan-09 8:58 
GeneralRe: DefaultValue() attribute problem Pin
xJorDyx8-Jan-09 9:49
xJorDyx8-Jan-09 9:49 
GeneralRe: DefaultValue() attribute problem Pin
DaveyM698-Jan-09 13:01
professionalDaveyM698-Jan-09 13:01 
AnswerRe: DefaultValue() attribute problem Pin
Wendelius8-Jan-09 10:01
mentorWendelius8-Jan-09 10:01 
QuestionGood tutorials Pin
damennix8-Jan-09 8:17
damennix8-Jan-09 8:17 
AnswerRe: Good tutorials Pin
Mohammad Dayyan8-Jan-09 9:36
Mohammad Dayyan8-Jan-09 9:36 
AnswerRe: Good tutorials Pin
Dragonfly_Lee8-Jan-09 17:35
Dragonfly_Lee8-Jan-09 17:35 
QuestionGood tutorials Pin
damennix8-Jan-09 8:17
damennix8-Jan-09 8:17 
GeneralRe: Good tutorials Pin
Luc Pattyn8-Jan-09 8:29
sitebuilderLuc Pattyn8-Jan-09 8:29 
QuestionCall Method Multuple Times Pin
RadioButton8-Jan-09 6:59
RadioButton8-Jan-09 6:59 

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.