The information in this article applies to:
SYMPTOMSThe destructor for static local variables in static objects may never be called. The destructor should be called when the program exits, but it does not get called. See the More Information section below for a specific example. RESOLUTIONAvoid using this construct. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION
The static local won't be destroyed if it is local to a destructor for which the only instance(s) of the destructor's class is static. If there are any local or heap allocated instances, the object will be destroyed (assuming delete is called for heap allocated instances).
Additional query words:
Keywords : kbCompiler kbCPPonly kbVC500bug kbVC600bug kbDSupport kbGrpVCCompiler |
Last Reviewed: July 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |