General information
Category:
Coding, syntax & commands
On shutdown (and it's clear event) will be executed, with unpredictable result. It crashed my test application when my form wasn't doing anything and my form wasn't responding to the clear events when it was in the middle of a process.
One of the best approach is to have a form manager that will ask each displayed form to close itself if it's not in the middle of a process. Then, when all forms are closed, do the clear event and the cleanup stuff.
HTH
>Yes it is not Multithreaded but ON SHUT DOWN will interrup the running event.
>So my question is, will the running event finish before the clear event that was executed in my on shutdown procedure is executed ?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only