Someone closes your console, stopping you from doing any cleanup?
Fair enough, production code is unlikely to be running in a cute .NET Console App, but maybe you come into a situation where you at least want to prevent somebody from closing your console window without going through your lovely cleanup routines. This link here will tell you what you can do.
To spread the word and to have a slightly less wordy version (using e.g. already defined delegates), you may also just look here:
read more
Lesen Sie den vollständigen Eintrag unter http://realfiction.net/?q=node/151