jirentabu / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

Setting bContinueExecution generates report twice #248

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
int CALLBACK CrashCallback(CR_CRASH_CALLBACK_INFO* pInfo)
{
    pInfo->bContinueExecution = TRUE;
    return CR_CB_DODEFAULT;
}

Setting the callback above using crSetCrashCallback(CrashCallback, NULL);
causes the callback and the crash report generation to be called twice, however 
the application execution is terminated.

CrashRpt version 1402.
The initialization code is as follows:
CR_INSTALL_INFO info;
memset(&info, 0, sizeof(CR_INSTALL_INFO));
info.cb = sizeof(CR_INSTALL_INFO);             // Size of the structure
info.pszAppVersion = _T("1.0.0-alpha.1");
info.dwFlags = CR_INST_DONT_SEND_REPORT | CR_INST_AUTO_THREAD_HANDLERS |     
CR_INST_ALL_POSSIBLE_HANDLERS;
info.pszErrorReportSaveDir = L"C:\some\folder";
crInstall(&info);

Original issue reported on code.google.com by krikun.d...@gmail.com on 18 Oct 2014 at 12:24