jirentabu / crashrpt

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

ASSERTION failure when CrThreadAutoInstallHelper fails to install handler #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When the constructor fails to install the handler (e.g. because the process 
handler was not installed) an assertion is raised in the destructor when 
calling crUninstallFromCurrentThread().

The destructor could be modified like this in CrashRpt.h:

~CrThreadAutoInstallHelper()
{
    // AS: When installation fails above, we avoid an redundant error message and 
    //     assertion failure here.
    if (m_nInstallStatus == 0)
         crUninstallFromCurrentThread();
}

Original issue reported on code.google.com by Schoenle...@googlemail.com on 6 May 2012 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 10 May 2012 at 6:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1347.

Original comment by zexspect...@gmail.com on 25 Aug 2012 at 2:18