Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Error when closing app that is minimized
Versions des environnements
Network:
Windows 2003 Server
I use the following code in all my programs:
"ON SHUTDOWN DO EXITAPP"
In the EXITAPP.PRG, I open a user database and save settings when the program closes, such as _screen.top, _screen.left and other data like that so I can use it when the program starts up again. All works fine, but I have one user that informed me that if he minimizes my VFP program and then right-clicks on it in the taskbar and clicks CLOSE, the program maximizes and then generates the following error message:
"Numeric overflow. Data was lost." If I click on [Ignore], it tells me the variables that I am saving in my EXITAPP are not found. Is there a solution to this problem or a work around, or a way to test if the program is trying to be shut down this way that I could tell my program to bypass the saving of these variables that are not available at this point?
Suivant
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