Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot Quit Visual Foxpro
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00944300
Message ID:
00944314
Vues:
24
This message has been marked as a message which has helped to the initial question of the thread.
>>>In my application, when the users changes values in the system preference and saves it, I release relevent forms and reload them.
>>>
>>>The problem is that if the user click on the X at the upper right corner of the main application window, he/she gets a message window titled " Microsoft Visual Foxpro" and the message says "Cannot Quit Visual Foxpro".
>>>
>>>Does anybody know what would cause the message to be issued?
>>>
>>>TIA
>>
>>You need to add an
ON SHUTDOWN DO MyFunction()
to your main.prg
>
>I already have that. This occurs prior to On ShutDown.

Interesting. How sure are you that the ON SHUTDOWN is still active? i.e. do you have any ON SHUTDOWN's without the optional clauses that might be accidentally releasing the ON SHUTDOWN? Or, are you sure that the ON SHUTDOWN did not fire - is it possible that it did fire, but returned prematurely (can you post the code in your ON SHUTDOWN routine)?

The only other thing that springs to mind is a dangling reference - if this to a form then it would generally prevent the form from being released, but this also generally results in the form remaining visible - so this seems less likely.
censored.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform