PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

"Close" button problem

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?