Re: Continue after error & Application.ThreadException

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 12/22/04


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/> 


Relevant Pages

  • Continue after error & Application.ThreadException
    ... I have a DLL I created to handle all unknown errors using the ... terminate the program or continue. ... keeps running but the routine that generated the error exited. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Aborting a thread
    ... My thread calls a routine in a DLL that is not written by me, ... This routine accepts input parameters, ... a result my app cannot terminate it (because the check for Terminated is ...
    (borland.public.delphi.non-technical)
  • Re: memory error
    ... The dll does both: present the data entry screen and work in the background. ... > break is showing the mousepointer line as the problem. ... > Do you have error checking enabled in the routine with the mousepointer ...
    (microsoft.public.vb.general.discussion)
  • Re: memory error
    ... Do you have error checking enabled in the routine with the mousepointer ... I have a very small dll that pops up a data entry ... I Googled the error message and only came up ...
    (microsoft.public.vb.general.discussion)
  • DirectX is too slow
    ... I have a dll for the DirectX drawing routines. ... I use QueryPerformanceCounter to time how long it takes to draw 6 lines. ... HERE'S THE DLL ROUTINE DRAWING LINES 6 AT A TIME. ...
    (microsoft.public.win32.programmer.directx.managed)