Re: Application.ThreadException doesn't catch in IDE

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi James,

When you choose "Debug", the debugger will register its default handler
for Application.ThreadException which will be invoked prior to your
handler. As the result, your handler appears to not be used. You could
see that the debugger also register a TraceListener to print
trace/debug output to the output window - it does not do so if you
double click your EXE.

Hope it helps,
Thi

.



Relevant Pages

  • Re: Threading Issues (If you can answer this, Ill kiss you.)
    ... a new thread that does nothing but register for the system event. ... > When you register for a SystemEvent a window is created to receive the OS ... > process exits a threadpool thread then calls your event handler. ... > specifically to handle the broadcast messages. ...
    (microsoft.public.dotnet.languages.vb)
  • linker magic: dynamic meta handlers...
    ... dealing with my compiler doing funky codegen magic at link time. ... register allocator/codegen, ...). ... If the handler builds a code fragment which exports the given symbol name, ... The request may also be passed arguments, ...
    (comp.compilers)
  • RE: update graphics between debugger stepping
    ... you use debugger to set a breakpoint in the paint handler of the ... The painting handler code executes in the main GUI thread of .Net winform. ... If you use debugger to set a breakpoint in the paint handler, ...
    (microsoft.public.dotnet.framework)
  • Re: [tip:perfcounters/core] perf_counter: x86: Fix call-chain support to use NMI-safe method
    ... Writing control registers is serializing, so it's a lot more expensive ... Then how about just writing to the cr2 register *if* it has changed ... fault (the fault handler gives us back an error code). ... And I would not want to touch the page fault handler itself to write the ...
    (Linux-Kernel)
  • Re: Exception Handling...
    ... At FS:the executing code can register an exception handler by providing ...
    (comp.lang.pascal.delphi.misc)