- Joined
- Feb 2, 2012
- Messages
- 1,667
- Reaction score
- 104
- Points
- 78
Hi all,
I just noticed that if I need to call functions in my vessel class destructors they just don't get called...
I tried also to simply log something with oapiWriteLog but nothing appears in the log...
Does anyone have an idea of why? I thought that from the destructor I could call any function I wanted. Of course I need to be careful not to "leave anything behind", but I can't even write a single word to log.
Why is that? :shifty::shrug:
Isn't the vessel class destructor called at simulation exit?
If you ask why I want to call functions from the destructor:
I need to close my log file handle, I want to be sure that some stuff is deleted etc...
EDIT:
I just found out that I had set as debugging option the "terminate orbiter process". I guess that kills orbiter like I would do with CTRL-ALT-DEL so the destructor does not get called... that would be curious anyway since the scenario is saved anyway so Orbiter knows it's quitting but it doesn't call the destructor?
I just noticed that if I need to call functions in my vessel class destructors they just don't get called...
I tried also to simply log something with oapiWriteLog but nothing appears in the log...
Does anyone have an idea of why? I thought that from the destructor I could call any function I wanted. Of course I need to be careful not to "leave anything behind", but I can't even write a single word to log.
Why is that? :shifty::shrug:
Isn't the vessel class destructor called at simulation exit?
If you ask why I want to call functions from the destructor:
I need to close my log file handle, I want to be sure that some stuff is deleted etc...
EDIT:
I just found out that I had set as debugging option the "terminate orbiter process". I guess that kills orbiter like I would do with CTRL-ALT-DEL so the destructor does not get called... that would be curious anyway since the scenario is saved anyway so Orbiter knows it's quitting but it doesn't call the destructor?
Last edited: