PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Closing of program do not run destructor
Closing of program do not run destructor
Iniciado por guest, 07,jul. 2016 14:59 - No hay respuesta
Publicado el 07,julio 2016 - 14:59
Hi all,

WinDev v20

In the global project code I have the following definition:

sc is object cSmartChioce
I expect the Destructor to be executed when closing the program via close(Main_Window), but the destructor code is not run?

then I tried:
sc is object cSmartChioce force Destructor
Same thing - The Destructor code is not executed?

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?

Anybody have some light do distribute as I`m currently stumbling in the dark :xcool:

Cheers
Tor-Bjarne