Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON SHUTDOWN causes strange error...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00020073
Message ID:
00020197
Vues:
46
>>>You need to clear your READ EVENTS before you try to shutdown VFP. It is much better to clear your environment before trying to exit VFP.
>>
>>Well, my ON SHUTDOWN procedure has CLEAR EVENTS as the first line in the procedure, but it never even actually gets to my procedure. The only thing I can think of is that you can't trigger ON SHUTDOWN if you're still processing events. And since you don't know when someone might try to click on the "X" button, you can't CLEAR EVENTS before they click it. Is there a QueryUnload event for the main Visual FoxPro window? If so, I can just take care of my business there. If not, I'll just have to disable the little "X" button in the title bar (or not have an ON SHUTDOWN). :(
>>
>I recall some problem like that. What I now use is thisform(set).release before clear events, and also I created a separate prg for cleanup in the project (I can't recall exactly why, but there was some problem).

Oh, I just looked at code & I forgot to say that you need NAME param in do form, then NAME.release before clear events in cleanup proc. This seems to cleanup the processing pretty well...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform