Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Closing open file when application ended using task manager
Versions des environnements
Network:
Windows 2003 Server
I am opening a low level text file to add temporary logging in an application to try to figure out where an application is freezing. The user eventually uses the windows task manager to end the program. How can I catch the fact that the application is being externally ended so I can close the file handle so the data in the file will be retained.
Or is there another way to be able to create a text log file to capture what I need to try to track down where my application is freezing?
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