occcont.cpp debug assertion fails while migrating from vs2003 to vs2010

  • Thread starter Thread starter ushaq ali
  • Start date Start date
U

ushaq ali

Guest
Our project is upgraded to vs2010 from vs2003 and moved to a x64 machine.

When I run one of its components some of the controls on that dialog are not created on windows 7. When I run it in debug mode debug assertion fails in occcont.cpp.Following message is displayed.

Debug assertion failed!

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp

Line 925.


ASSERT(IsWindow(pTemp->m_hWnd)); causes the assertion to fail. Because m_hwnd is null.

Same application runs fine on winXP.

Although I have unregisterd and then registered controls manually.But all in vain.

This is the last call on call stack.

> mfc100ud.dll!COleControlContainer::FillListSitesOrWnds(_AFX_OCC_DIALOG_INFO * pOccDlgInfo) Line 925 + 0x27 bytes C++

Can anybody help me to tackle this.

Thanks in advance.


Continue reading...
 
Back
Top