PRB: exit() Function Does Not Clean Up Nonstatic Objects (92500)
The information in this article applies to:
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 1.5
- Microsoft Visual C++ 1.51
- Microsoft Visual C++ 1.52
- Microsoft Visual C++ 2.0
- Microsoft Visual C++ 2.1
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q92500 SYMPTOMS
When an application calls the exit(), _exit(), _cexit(), or _c_exit()
functions, the destructors for any temporary or automatic objects
that exist at the time of the call are not called. The text below
provides a sample program to demonstrate this behavior.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbLangCPP kbprb KB92500 |
---|
|