KierannCode / Playground

Project about creating a game engine with SDL from scratch, this is for fun and for my personal experience only
0 stars 0 forks source link

Crash when launching from executable #10

Closed KierannCode closed 2 years ago

KierannCode commented 2 years ago

The compiled program works fine when launched within Eclipse, But it crashes for no reason when launched from the executable after 1/2 seconds Both the main window and the console appears (the latter should not appear) before crashing Reason unknown

KierannCode commented 2 years ago

Problem solved : The program was executed in the Playground path with Eclipse but is located in Playground\Debug, therefore it was not able to load files in folder Playground\Debug and crashed. A crash error prompt message will be implemented for this case

KierannCode commented 2 years ago

Linker options edited so that the console does not appear when executing the program

KierannCode commented 2 years ago

Last commit up-to-date with the resolution of this bug with extra resilience features : -SDL Exception has been improved, it is now possible to add an extra message at the end of the SDL Error message, typically a hint with context about how to solve the error. -Added a global try-catch block in main (which may or may not be discarded later on) -Whenever an error is logged, a message box is prompt to the final user regardless of the log Level. This will be improved later on