<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>7 Jul 2016 14:59:00 Z</lastBuildDate><pubDate>7 Jul 2016 14:59:00 Z</pubDate><description>Hi all,&#13;
&#13;
WinDev v20&#13;
&#13;
In the global project code I have the following definition:&#13;
&#13;
sc is object cSmartChioce&#13;
I expect the Destructor to be executed when closing the program via close(Main_Window), but the destructor code is not run?&#13;
&#13;
then I tried:&#13;
sc is object cSmartChioce force Destructor&#13;
Same thing - The Destructor code is not executed?&#13;
&#13;
I want to save some array in a xml file when exiting and can call a sc.save() method before closing, but I was under the impression that destructor code was the last piece of code executed before the object was destroyed?&#13;
&#13;
Anybody have some light do distribute as I`m currently stumbling in the dark :xcool:&#13;
&#13;
Cheers&#13;
Tor-Bjarne</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58548-closing-program-not-run-destructor/read.awp</link><title>Closing of program do not run destructor</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
