www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - TraceHandler not being called on Access violation

reply Benjamin Thaut <code benjamin-thaut.de> writes:
I'm currently implementing a stack backtrace for D 2.0 which provides
additional information for D Errors and Exceptions through the runtime trace
handler. It is already working for exceptions and errors, but for a access
violation the trace handler is not called. As I'm currently writing the
windows version of the backtracer (linux version will follow) I tried to use
the UnhandeledExceptionFilter from the win api, but it is not being called
when a access violation happens, so it seems that the D 2.0 implementation
does handle the error in some way. Is there a other error handler that is
being called on a access violation or is there no possibility to provide a
backtrace for a access violation yet?

Regards
Benjamin Thaut
Jun 25 2010
parent reply Sean Kelly <sean invisibleduck.org> writes:
Benjamin Thaut Wrote:

 I'm currently implementing a stack backtrace for D 2.0 which provides
 additional information for D Errors and Exceptions through the runtime trace
 handler. It is already working for exceptions and errors, but for a access
 violation the trace handler is not called. As I'm currently writing the
 windows version of the backtracer (linux version will follow) I tried to use
 the UnhandeledExceptionFilter from the win api, but it is not being called
 when a access violation happens, so it seems that the D 2.0 implementation
 does handle the error in some way. Is there a other error handler that is
 being called on a access violation or is there no possibility to provide a
 backtrace for a access violation yet?
Errors that originate from the Windows SEH are constructed a bit differently. I'll have to make sure this is done in a way that triggers the trace handler.
Jun 25 2010
parent Benjamin Thaut <code benjamin-thaut.de> writes:
Hi Sean,
did you have time to look at this issue in the meantime?

Kind Regards
Benjamin Thaut
Oct 06 2010