Added try/catch
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -1468,6 +1468,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
//_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
|
//_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
|
||||||
//_CrtSetBreakAlloc(1279);
|
//_CrtSetBreakAlloc(1279);
|
||||||
|
try{
|
||||||
AudioPlayer::init();
|
AudioPlayer::init();
|
||||||
GAppSettings settings;
|
GAppSettings settings;
|
||||||
settings.window.resizable = true;
|
settings.window.resizable = true;
|
||||||
@@ -1560,5 +1561,10 @@ int main(int argc, char** argv) {
|
|||||||
//messageTime = G3D::System::time();
|
//messageTime = G3D::System::time();
|
||||||
|
|
||||||
app.run();
|
app.run();
|
||||||
|
}
|
||||||
|
catch(std::exception)
|
||||||
|
{
|
||||||
|
OnError(-1);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user