Probelm about CException in release mode?
Hi,
My application works fine on debug mode, but not fine on release mode.
The GPF will be happen after CException::Delete() every time.
My class structure is like below. Please help me to solve this problem.
Thank you!
class EXPORT CApiException
{
CApiException (bAutoDelete):CException( bAutoDelete) {}
.....
}
CApiException *pError = Sender(..); <== Sender will return an error if error is happened.
if (pError)
{
pError->ReportError();
pError->Delete(); <== GPF is happened here in release mode.
}

