Click here to Skip to main content
15,894,328 members
Home / Discussions / C#
   

C#

 
Questionhow can i enable back newToolStripMenuItem to true Pin
crisjala11-Mar-10 14:03
crisjala11-Mar-10 14:03 
AnswerRe: how can i enable back newToolStripMenuItem to true Pin
DaveyM6911-Mar-10 14:18
professionalDaveyM6911-Mar-10 14:18 
GeneralRe: how can i enable back newToolStripMenuItem to true Pin
crisjala11-Mar-10 19:27
crisjala11-Mar-10 19:27 
GeneralRe: how can i enable back newToolStripMenuItem to true Pin
crisjala11-Mar-10 20:37
crisjala11-Mar-10 20:37 
GeneralRe: how can i enable back newToolStripMenuItem to true Pin
DaveyM6912-Mar-10 3:51
professionalDaveyM6912-Mar-10 3:51 
QuestionCatch Asynchronous Exception? Pin
Matthew Klein11-Mar-10 9:42
Matthew Klein11-Mar-10 9:42 
AnswerRe: Catch Asynchronous Exception? Pin
AspDotNetDev11-Mar-10 13:36
protectorAspDotNetDev11-Mar-10 13:36 
AnswerRe: Catch Asynchronous Exception? Pin
Luc Pattyn11-Mar-10 13:46
sitebuilderLuc Pattyn11-Mar-10 13:46 
Hi,

simply restarting your main form whenever a problem occurs, I don't like it a bit. You are not in control, old threads may still be running, files may still be open, memory leaks and deadlocks are possible.

What you should do is solve any potential problem as near as possible to the location where it occurs. And then you could/should add an extra safety net to catch whatever exception that slips through; those should be logged in full detail, and result in a "fatal error" message to the user (assuming an interactive program); or a real shutdown-and-restart of your app (when an embedded application, e.g. a server). For the safety net, you would need the things aspdotnetdev mentioned.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Catch Asynchronous Exception? Pin
Matthew Klein11-Mar-10 14:18
Matthew Klein11-Mar-10 14:18 
GeneralRe: Catch Asynchronous Exception? Pin
Luc Pattyn11-Mar-10 14:33
sitebuilderLuc Pattyn11-Mar-10 14:33 
QuestionRemoting & Events ("Exception has been thrown by the target of an invocation.”) Pin
bluescreen7611-Mar-10 8:41
bluescreen7611-Mar-10 8:41 
AnswerRemoting & Events ("Exception has been thrown by the target of an invocation.”) - urgent! Pin
bluescreen7616-Mar-10 4:18
bluescreen7616-Mar-10 4:18 
QuestionOutlook addin integration problem with Outlook 2007 Pin
mosh_3311-Mar-10 6:52
mosh_3311-Mar-10 6:52 
QuestionSwitch versus an array of delegates Pin
PIEBALDconsult11-Mar-10 5:36
mvePIEBALDconsult11-Mar-10 5:36 
AnswerRe: Switch versus an array of delegates Pin
Saksida Bojan11-Mar-10 5:43
Saksida Bojan11-Mar-10 5:43 
AnswerRe: Switch versus an array of delegates Pin
Keith Barrow11-Mar-10 5:54
professionalKeith Barrow11-Mar-10 5:54 
GeneralRe: Switch versus an array of delegates Pin
PIEBALDconsult11-Mar-10 6:45
mvePIEBALDconsult11-Mar-10 6:45 
AnswerRe: Switch versus an array of delegates Pin
harold aptroot11-Mar-10 6:00
harold aptroot11-Mar-10 6:00 
GeneralRe: Switch versus an array of delegates Pin
PIEBALDconsult11-Mar-10 6:53
mvePIEBALDconsult11-Mar-10 6:53 
GeneralRe: Switch versus an array of delegates Pin
harold aptroot11-Mar-10 8:23
harold aptroot11-Mar-10 8:23 
GeneralRe: Switch versus an array of delegates Pin
PIEBALDconsult11-Mar-10 10:12
mvePIEBALDconsult11-Mar-10 10:12 
GeneralRe: Switch versus an array of delegates Pin
harold aptroot11-Mar-10 10:44
harold aptroot11-Mar-10 10:44 
AnswerRe: Switch versus an array of delegates Pin
Luc Pattyn11-Mar-10 6:04
sitebuilderLuc Pattyn11-Mar-10 6:04 
GeneralRe: Switch versus an array of delegates Pin
Dave Kreskowiak11-Mar-10 6:38
mveDave Kreskowiak11-Mar-10 6:38 
GeneralRe: Switch versus an array of delegates Pin
Luc Pattyn11-Mar-10 6:58
sitebuilderLuc Pattyn11-Mar-10 6:58 

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.