Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Intermediate
Dec 9, 1998



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Cleaning up After a Crash

If your app uses temporary files, store the file name(s) in the Registry as you create them. When you exit the program, delete the temporary file and its related Registry entry. However, if you shut off the machine, Windows crashes, or your program crashes, your temporary file will stay in the Registry. This leads to wasted space, and you must then delete the files from their temporary directory. Because you stored the temporary file name in the Registry, you can check for it when your program starts up again and delete it if it still exists.
Brian Hutchison
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date