Programming Tips - MFC: My MFC application hangs in AfxWinTerm() when closing. Why?

Date: 2009apr22 Update: 2025jul10 Language: C/C++ Framework: MFC Q. MFC: My MFC application hangs in AfxWinTerm() when closing. Why? And how do I stop this? A. I have seen this happen if you use LoadLibary() to load a DLL but do not use FreeLibary() to unload it. So do a FreeLibrary() before doing AfxWinTerm()