Re: Continue after error & Application.ThreadException
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 12/22/04
- Next message: Herfried K. Wagner [MVP]: "Re: keep controls in the toolbox"
- Previous message: Herfried K. Wagner [MVP]: "Re: only integer"
- In reply to: Matthew Hood: "Continue after error & Application.ThreadException"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: Continue after error & Application.ThreadException"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Dec 2004 17:52:35 +0100
"Matthew Hood" <DragonWeyrDev@Yahoo.com> schrieb:
>I have a DLL I created to handle all unknown errors using the
>Application.ThreadException event. I'm asking the user if they want to
>terminate the program or continue. This is working like I want. The
>program exits when I tell it to terminate, and when I continue, the program
>keeps running but the routine that generated the error exited. I want to
>take this a step further though. Instead of the routine that generated the
>error exiting, I would like it to continue with the next line, or even
>retry it if possible in some circumstances.
You could use 'On Error Resume Next' inside the method directly. Notice
that this will maybe prevent the 'ThreadException' from being thrown.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
- Next message: Herfried K. Wagner [MVP]: "Re: keep controls in the toolbox"
- Previous message: Herfried K. Wagner [MVP]: "Re: only integer"
- In reply to: Matthew Hood: "Continue after error & Application.ThreadException"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: Continue after error & Application.ThreadException"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|