I am extremely surprised that my C++ compiler does not invoke the
destructor on dynamically created objects upon program termination. As
part of the overall "cleanup" upon program termination I was expecting
the destructors of all the dynamically created objects to get invoked.
Is this a quirk of my compiler, or is this the norm? I know that I am
a "nobody", but this does not make any sense to me at all.
Thanks,
Zahid
destructor on dynamically created objects upon program termination. As
part of the overall "cleanup" upon program termination I was expecting
the destructors of all the dynamically created objects to get invoked.
Is this a quirk of my compiler, or is this the norm? I know that I am
a "nobody", but this does not make any sense to me at all.
Thanks,
Zahid
Comment