General information
Category:
Coding, syntax & commands
Title:
Closing open file when application ended using task manager
Environment versions
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only