Are destructors called when the application ends?
BlitzMax Forums/BlitzMax Programming/Are destructors called when the application ends?| 
 | ||
| Are object Delete() methods all called during cleanup when an application ends? | 
| 
 | ||
| As far as I remember: no. | 
| 
 | ||
| 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 :-) | 
| 
 | ||
| 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. |