My CMainFrm class derived from CFrameWnd is created in the InitInstance() func. with 'new'. When i later on in the app by a keydown calls PostQuitMessage(0) the app exits but the CMainFrm class destructor never is called.. Why ?. Should all setupcode and cleanup ( except wnd creation ) be made in other funcs.??