In the release version of my code, one line throws an exception, and I donโt know what type of exception it is, so I cannot catch it correctly or figure out the problem.
I use catch (...), but it is pretty useless.
here is some kind of pseudo code
try { m_mmwIPC = gcnew NiftyIPC(gcnew String("Monitor"), true); } catch (CException* e) { TCHAR szCause[255]; e->GetErrorMessage(szCause, 255); CString errorStr = szCause; RemoveLineFeeds(errorStr); OutputDebugString(errorStr); } catch(...) { OutputDebugString(L"Unknown exception\n"); }
So, is there any way to get any information about an unknown exception thrown? Just the type will be great.
thanks
source share