Show entire error when in debug mode
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user