Alan
2010-01-12 15:15:01 UTC
It seems my application may sometimes get into an infinite loop. The
application has a top level exception handler which creates an error report
(ERRLOG.TXT) which is created using the information in an EXCEPTION_POINTERS
record. The report lists the type of exception, the module and address where
the exception occurred, system data, registers, stack dump and module
information.
I would like to provide an facility to users to force an exception if the
application "stops working". Unfortunately, the report created for such a
forced exception only relates to the code that forces the exception, which is
not where the infinite loop is. I would really like to access the program
counter for every thread and print it in this same report so I can try to
find the offending code. Is there any way to grab this information? I know it
exists because DumpMiniDump gets thread information.
application has a top level exception handler which creates an error report
(ERRLOG.TXT) which is created using the information in an EXCEPTION_POINTERS
record. The report lists the type of exception, the module and address where
the exception occurred, system data, registers, stack dump and module
information.
I would like to provide an facility to users to force an exception if the
application "stops working". Unfortunately, the report created for such a
forced exception only relates to the code that forces the exception, which is
not where the infinite loop is. I would really like to access the program
counter for every thread and print it in this same report so I can try to
find the offending code. Is there any way to grab this information? I know it
exists because DumpMiniDump gets thread information.