Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Application crashes on exit / gives CInvalid Arguement Exception. Collapse All
Subject Author Date
Debabrata Mukherjee Dec 10, 2007 - 9:13 AM

Hi <
My applicattion uses Prof_UIS 2.82 and has an implementation of CExtTabPageContainerWnds. When closing my application a error comes up
Cinvalid Arguement Exception. In debug setup, I get the error in the MFC file list_o.cpp. When traced back, I get the error in the DestroyWindow of the Mainframe Class. Here is my Mainframe:: DestroyWindow()

BOOL CSaIsMainFrame::DestroyWindow()
{
//m_wndMenuBar.RemoveAllWndHooks(); // I HAVE TRIED IT BUT NO USE
CWinApp * pApp = ::AfxGetApp();
ASSERT( pApp != NULL );
//ASSERT( pApp->m_pszRegistryKey != NULL );
//ASSERT( pApp->m_pszRegistryKey[0] != _T(’\0’) );
ASSERT( pApp->m_pszProfileName != NULL );
ASSERT( pApp->m_pszProfileName[0] != _T(’\0’) );

    // this was commented for debugging only
//    VERIFY(    CExtControlBar::ProfileBarStateSave(this,pApp->m_pszRegistryKey,pApp->m_pszProfileName,
//            pApp->m_pszProfileName));

g_CmdManager->ProfileWndRemove( GetSafeHwnd() );

// SetActiveView( NULL ); // // I HAVE TRIED IT BUT NO USE


return CExtNCW < CFrameWnd > :: DestroyWindow(); // This is the point where the problem occurs.


What can I do so that my application shuts down cleanly.

Please suggest ASAP. Its very urgent.

PLease feel free to mail me any other details if you need. at

sanket_das1@yahoo.co.in
}