| | |
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 angle array barchart bitmap box broadcast c# capturing check checkbox client combobox control conversion convert csharp custom database datagrid datagridview dataset datetime dbconnection degrees delegate design development disappear draganddrop drawing encryption enum event excel file firefox form format forms function gdi+ httpwebrequest image index input install java label leak libraries list listbox mandelbrot math monodevelop mouseclick msword mysql operator path pause photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox round server sleep socket sql statistics stream string table tcpclientchannel text textbox thread time timer update usercontrol validation virtualization visualbasic visualstudio webbrowser windows winforms wpf xml






