Show entire error when in debug mode

This commit is contained in:
andreja6
2019-11-03 23:50:55 -08:00
parent 476610fe06
commit 1e27e105b7

View File

@@ -1727,7 +1727,9 @@ void Demo::onCreate(HWND parentWindow)
} }
int main(int argc, char** argv) { int main(int argc, char** argv) {
#ifndef _DEBUG
try{ try{
#endif
hresult = OleInitialize(NULL); hresult = OleInitialize(NULL);
if (!AXRegister()) if (!AXRegister())
return 0; return 0;
@@ -1790,7 +1792,9 @@ int main(int argc, char** argv) {
Demo demo = Demo(settings,hwndMain); Demo demo = Demo(settings,hwndMain);
demo.run(); demo.run();
#ifndef _DEBUG
} }
catch(std::exception w) catch(std::exception w)
{ {
//TODO Figure how to save the error to file //TODO Figure how to save the error to file
@@ -1799,5 +1803,6 @@ int main(int argc, char** argv) {
out.close(); out.close();
OnError(-1); OnError(-1);
} }
#endif
return 0; return 0;
} }