Are destructors called when the application ends?

BlitzMax Forums/BlitzMax Programming/Are destructors called when the application ends?

JoshK(Posted 2008) [#1]
Are object Delete() methods all called during cleanup when an application ends?


Beaker(Posted 2008) [#2]
As far as I remember: no.


Grey Alien(Posted 2008) [#3]
This can be easily tested by using a print command in a destructor. I thought I tested this a while back and they were called, so now I'm confused :-)


ziggy(Posted 2008) [#4]
They are not always called. I think adding a end program hook that sets the GC mode to manual and forces a GCCollect() should do the trick, as far as I know.