|
-
December 22nd, 2010, 04:22 PM
#1
Exception Handling without closing program
Hello,
I've written a small program for a small business, and I'm looking to handle some exceptions in a special way. Specifically, when an attempt to connect to the database fails, I would like to pop up a Windows.Form displaying the exception and giving the user some debug tips.
Of course, if I catch the exception and throw it forward it closes the entire application, and if I simply catch the exception and don't throw it further it will run into other exceptions, causing the same issue.
Is there some way I can either cause the current thread to close (opening the information form in another thread), or handle the exception without causing the program to close?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|