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

C#

 
AnswerRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
Pete O'Hanlon19-Nov-10 2:34
mvePete O'Hanlon19-Nov-10 2:34 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa20-Nov-10 14:14
dpminusa20-Nov-10 14:14 
AnswerRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
_Erik_19-Nov-10 3:46
_Erik_19-Nov-10 3:46 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa20-Nov-10 14:18
dpminusa20-Nov-10 14:18 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
_Erik_20-Nov-10 16:01
_Erik_20-Nov-10 16:01 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa20-Nov-10 20:01
dpminusa20-Nov-10 20:01 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
_Erik_20-Nov-10 23:21
_Erik_20-Nov-10 23:21 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa21-Nov-10 4:46
dpminusa21-Nov-10 4:46 
I found the following reference in my local copy of the .NET doc

ThreadExceptionEventArgs Class  

Provides data for the ThreadException event. 


Namespace:   System.Threading
Assembly:   System (in System.dll) 

...

PlatformsWindows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98



The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements. 
Version Information.NET Framework
Supported in: <big>3.5, 3.0, 2.0, 1.1, 1.0</big> 


I also see another doc reference in the online 4.0 doc
http://msdn.microsoft.com/en-us/library/system.threading.threadexceptioneventargs.aspx[^]

This reference has a different code example to try.

Thanks for pointing this out. The doc on theis topic is a bit thick and confusing to sort out and follow.

So far I have decided that using a try/catch in Program.cs with the Application.Restart() is the best for me at present.
I can log, warn the user, and let them try different approaches and/or parts of the program.

I have found that an actual crash scares them off. As long as there is controlled execution, graceful exits,
and no eroneous results they are happier.
"Coding for fun and profit ... mostly fun"

AnswerRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
Rhys Gravell21-Nov-10 23:57
professionalRhys Gravell21-Nov-10 23:57 
Questiondatetimepicker with multiple selected dates Pin
ajithnamboodiri18-Nov-10 19:58
ajithnamboodiri18-Nov-10 19:58 
AnswerRe: datetimepicker with multiple selected dates Pin
Mycroft Holmes18-Nov-10 20:46
professionalMycroft Holmes18-Nov-10 20:46 
AnswerRe: datetimepicker with multiple selected dates Pin
RobCroll19-Nov-10 0:55
RobCroll19-Nov-10 0:55 
AnswerRe: datetimepicker with multiple selected dates Pin
Gregory Gadow19-Nov-10 9:40
Gregory Gadow19-Nov-10 9:40 
AnswerRe: datetimepicker with multiple selected dates Pin
thatraja20-Nov-10 2:13
professionalthatraja20-Nov-10 2:13 
QuestionPrint a data using GDI object in windows form Pin
ragupathi.p18-Nov-10 17:55
ragupathi.p18-Nov-10 17:55 
AnswerRe: Print a data using GDI object in windows form Pin
Luc Pattyn18-Nov-10 18:26
sitebuilderLuc Pattyn18-Nov-10 18:26 
GeneralRe: Print a data using GDI object in windows form Pin
ragupathi.p22-Nov-10 19:24
ragupathi.p22-Nov-10 19:24 
QuestionVersioning Question Pin
Richard Andrew x6418-Nov-10 13:51
professionalRichard Andrew x6418-Nov-10 13:51 
AnswerRe: Versioning Question PinPopular
Luc Pattyn18-Nov-10 14:14
sitebuilderLuc Pattyn18-Nov-10 14:14 
GeneralRe: Versioning Question Pin
Richard Andrew x6418-Nov-10 14:18
professionalRichard Andrew x6418-Nov-10 14:18 
GeneralRe: Versioning Question Pin
Luc Pattyn18-Nov-10 14:32
sitebuilderLuc Pattyn18-Nov-10 14:32 
AnswerRe: Versioning Question Pin
Dave Kreskowiak18-Nov-10 15:25
mveDave Kreskowiak18-Nov-10 15:25 
GeneralRe: Versioning Question Pin
Richard Andrew x6418-Nov-10 15:29
professionalRichard Andrew x6418-Nov-10 15:29 
AnswerRe: Versioning Question Pin
Bernhard Hiller21-Nov-10 23:22
Bernhard Hiller21-Nov-10 23:22 
Questiongetting data over website Pin
Erdinc2717-Nov-10 21:51
Erdinc2717-Nov-10 21:51 

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.