I assume that the requested function is exported to a DLL, so I prevent any exception for flying.
#include <exception.h>
void someFunction()
{
try {
} catch (const std::exception& ex) {
logException(ex.what());
} catch (...) {
logException("unexpected exception caught");
}
}
public void logException(const char* const msg)
{
}
source
share