| | |
catching exceptions globaly in windows application
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
Not really
Its good practice to handle the exceptions as they occur and decide if you can move on or pass back a specific error message
Here is an example of what you might be looking for though
http://stackoverflow.com/questions/3...er-with-resume
Its good practice to handle the exceptions as they occur and decide if you can move on or pass back a specific error message
Here is an example of what you might be looking for though
http://stackoverflow.com/questions/3...er-with-resume
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Jan 2008
Posts: 2,052
Reputation:
Solved Threads: 118
i found this :
http://www.dotnetjunkies.com/WebLog/...0/08/2152.aspx
http://www.dotnetjunkies.com/WebLog/...0/08/2152.aspx
Due to lack of freedom of speech, i no longer post on this website.
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
pretty much the same thing
the important piece being this line
unless you want to use it to catch exceptions that you didn't handle already, its not a recommended solution for error handling
the important piece being this line
C# Syntax (Toggle Plain Text)
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler (Application_ThreadException);
unless you want to use it to catch exceptions that you didn't handle already, its not a recommended solution for error handling
Last edited by dickersonka; Apr 8th, 2009 at 4:11 pm.
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
![]() |
Other Threads in the C# Forum
- Previous Thread: Totaling and averaging column in datagridview
- Next Thread: Trouble with Array.BinarySearch method
| Thread Tools | Search this Thread |
.net access algorithm array backup barchart bitmap box broadcast buttons c# check checkbox client clock combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees developer development draganddrop drawing dynamiccreation encryption enum excel file form format forms function gdi+ hospitalmanagementsystems httpwebrequest image index input install interface java label list listbox mandelbrot math microsystems mouseclick mysql operator password path photoshop picturebox pixelinversion post priviallages. programming property radians regex remoting richtextbox running... serialization server sleep soap socket sql sqlserver stack statistics stream string table temperature text textbox thread time timer update usercontrol validation visualstudio webbrowser windows windowsformsapplication winforms wpf write xml






