A
Andreas Schmitt
Hi,
I'm using a phoenix singleton template in a DLL for windows which is using
the atexit()
function to call the objects destructor in case
the object had to be recreated with placement new after destruction.
Now.. how does the atexit() function work in this case? If atexit() is
called from within the DLL, will the secified
functions be called when the DLL is unloaded? (good)
Will they be called when the progam terminates? (bad)
Will this not work at all an crash for sure? (worse)
I'm using VC++ in case that makes a difference.
Thanks
I'm using a phoenix singleton template in a DLL for windows which is using
the atexit()
function to call the objects destructor in case
the object had to be recreated with placement new after destruction.
Now.. how does the atexit() function work in this case? If atexit() is
called from within the DLL, will the secified
functions be called when the DLL is unloaded? (good)
Will they be called when the progam terminates? (bad)
Will this not work at all an crash for sure? (worse)
I'm using VC++ in case that makes a difference.
Thanks