Information générale
Catégorie:
Codage, syntaxe et commandes
To add to Edward's reply: it's because your close all closes one or more tables that are referenced in events that are firing as the form is destroyed.
If you use the DataEnvironment and have autoCloseTables set to .T. then you don't even need to worry about closing a form's tables.
Are you using a prg or form for your application's main object? I'd suggest a prg. I think it's easier to maintain the shutdown code.
If you haven't already, you might want to check out the Tastrade solution sample or application wizard for ideas on clean up code.
HTH
>Cannot access the selected table (Error 1152).
>I have a form with an Exit command button.
>This is the only code in the Exit button -
>THISFORM.Release
>CLOSE ALL
>QUIT
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