| | |
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 barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development draganddrop drawing encryption enum event excel file filename finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile gis globalization gtk httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser windows winforms wpf xml






