[fpc-pascal] Detecting console close with red X on windows

James Richters james at productionautomation.net
Sun May 19 14:23:34 CEST 2019

Is there a way I can detect that a user has pushed the red X in the upper right corner to close the console window in a free pascal console application so I can save some files before the program terminates?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190519/46fc657b/attachment.html>

More information about the fpc-pascal mailing list