I have code that should execute at program closing.
I inherit Shutdown() function and put the code in it.
It works fine while i'm calling Shutdown().
But if i press "Close" button in windowed mode this code doesnt run...
Is there a solution for this situation?
I inherit Shutdown() function and put the code in it.
It works fine while i'm calling Shutdown().
But if i press "Close" button in windowed mode this code doesnt run...
Is there a solution for this situation?