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 General Discussion » Often get assertions in the same place... Collapse All
Subject Author Date
Dmitri Doulepov Jun 5, 2004 - 1:19 PM

ExtToolControlBar.cpp, line 7014


This happens when open document and change main toolbar in the MDI application. Full stack trace:


  mfc71d.dll!AfxAssertValidObject(const CObject * pOb=0x01948798, const char * lpszFileName=0x01032990, int nLine=7014)  Line 92 C++
  ProfUIS224md.dll!00ddce66()  
  mfc71d.dll!CWnd::OnWndMsg(unsigned int message=514, unsigned int wParam=0, long lParam=196609, long * pResult=0x00b3fb30)  Line 2164 C++
  mfc71d.dll!CWnd::WindowProc(unsigned int message=514, unsigned int wParam=0, long lParam=196609)  Line 1745 + 0x1e C++
  mfc71d.dll!CControlBar::WindowProc(unsigned int nMsg=514, unsigned int wParam=0, long lParam=196609)  Line 503 + 0x14 C++
  ProfUIS224md.dll!00bd1c98()  
  ProfUIS224md.dll!00de0a10()  
  mfc71d.dll!AfxCallWndProc(CWnd * pWnd=0x0023c81c, HWND__ * hWnd=0x0085031a, unsigned int nMsg=514, unsigned int wParam=0, long lParam=196609)  Line 241 + 0x1a C++
  mfc71d.dll!AfxWndProc(HWND__ * hWnd=0x0085031a, unsigned int nMsg=514, unsigned int wParam=0, long lParam=196609)  Line 389 C++
  mfc71d.dll!AfxWndProcBase(HWND__ * hWnd=0x0085031a, unsigned int nMsg=514, unsigned int wParam=0, long lParam=196609)  Line 209 + 0x15 C++
  user32.dll!77d43a50()  
  user32.dll!77d43b1f()  
  user32.dll!77d43d79()  
  user32.dll!77d6669d()  
  user32.dll!77d43ddf()  
  user32.dll!77d4b1f5()  
  user32.dll!77d65906()  
  mfc71d.dll!CWnd::IsDialogMessageA(tagMSG * lpMsg=0x00053a80)  Line 200 C++
  mfc71d.dll!CWnd::PreTranslateInput(tagMSG * lpMsg=0x00053a80)  Line 4512 C++
  ProfUIS224md.dll!00becb48()  
  mfc71d.dll!CWnd::WalkPreTranslateTree(HWND__ * hWndStop=0x003b037e, tagMSG * pMsg=0x00053a80)  Line 3129 + 0x12 C++
  mfc71d.dll!AfxInternalPreTranslateMessage(tagMSG * pMsg=0x00053a80)  Line 238 + 0x12 C++
  mfc71d.dll!CWinThread::PreTranslateMessage(tagMSG * pMsg=0x00053a80)  Line 795 + 0x9 C++
  mfc71d.dll!AfxPreTranslateMessage(tagMSG * pMsg=0x00053a80)  Line 257 + 0xf C++
  mfc71d.dll!AfxInternalPumpMessage()  Line 183 + 0x18 C++
  mfc71d.dll!CWinThread::PumpMessage()  Line 916 C++
  mfc71d.dll!CWinThread::Run()  Line 637 + 0xb C++
  mfc71d.dll!CWinApp::Run()  Line 701 C++
  mfc71d.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00051f0d, int nCmdShow=1)  Line 49 + 0xb C++
  ERStudio.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00051f0d, int nCmdShow=1)  Line 25 C++
  ERStudio.exe!WinMainCRTStartup()  Line 390 + 0x39 C
  kernel32.dll!77e814c7()


Code that changes the toolbar is located in the message handler of CMainFrame (sent by PostMessage):


m_wndToolBar.LoadToolBar(bEnable ? IDR_ERStudioTYPE : IDR_MAINFRAME);
RecalcLayout();


Any ideas how can I avoid it? I am using trial of Prof_UIS, so I cannot find the reason myself.

Technical Support Jun 7, 2004 - 6:19 AM

Dear Dmitri,

There is not enough information in your message to come to any conclusion about the cause of assertions. Could you send us your source code?

Dmitri Doulepov Jun 8, 2004 - 1:41 AM

My project is too large to send it... I will try to locate problem myself after I buy Prof-UIS (soon) and if I find something bad, I will send you my findings.

Thanks for proposal, anyway. Very pleasant to see such a good support!