CrashRpt not running CrashCallback after 0xC0000005 Access Violation (AV) error

82 views
Skip to first unread message

eha...@hardin-soft.com

unread,
May 24, 2016, 11:18:43 AM5/24/16
to Crashrpt
I've had a couple of AV errors that I have since debugged but I noticed that even though CrashRpt functioned well as far as error reports (xml, screen shots, dump) being generated the CrashCallBack was never run and the crAddFile2 file was never added. 

The CrashCallBack and crAddFile2 all work fine with other types of errors but not, apparently, with an AV error. 

As far as the setup sequence I have
crInstall(&info)
crSetCrashCallback(CrashCallback, NULL)
crAddFile2(pathLog, NULL, _T("crLog.txt"), CR_AF_MAKE_FILE_COPY)
and finally ...
int iReturn =  GetWMIData()

The WMI Data is included in the crashrpt.xml so no problem there.  The CallBack was supposed to add lines to the crLog.txt file (which it didn't) and the crLog.txt file was supposed to be added to the other crashrpt files (which it wasn't)

Has anyone else ever seen this happen or is this just the nature of an AV error?

Ed
Reply all
Reply to author
Forward
0 new messages