Information générale
Catégorie:
Codage, syntaxe et commandes
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 ?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement