Why does my C++ application not shutdown properly if it is running while Windows is shutting down.

Abstract: Why does my C++ application not shutdown properly if it is running while Windows is shutting down.

This is due an issue in the memory manager, when you have a C++ application using packages (normally VCL applications) with the dynamic RTL and the shared memory manager (the borlndmm.dll).

So to workaround the issue is relatively simple, just rebuild�and�either NOT use packages OR NOT use the dynamic runtime library, OR BOTH.


Author: Roy Nelson