Analysing mfc/atl assertions

  • Thread starter Thread starter Daniel Lidström
  • Start date Start date
D

Daniel Lidström

(I posted this to m.p.pocketpc.developer but got no answers)

Hello!

I have a problem when launching my application. It starts with firing an
assertion.
This assertion is inside mfc or atl it seems, and the message is the
following:

Debug Assertion Failed!

File: f:\sp\vctools\vc7libsce\ship\atlmfc\src\mfc\winocc.cpp
Line: 339

What possibilities are there to find out more about assertions like this?
Is this source available as part of a MSDN subscription? I would be
willing to pay for such a subscription. Surely there must be a way to
handle such assertions, or they would be there.

Thanks for any information!

P.S. I'm using Visual Studio 2005 and am trying to run the program on
Windows Mobile 2005.

Regards,
Daniel Lidström
 
Hi Daniel,
I have a problem when launching my application. It starts with firing
an assertion.
This assertion is inside mfc or atl it seems, and the message is the
following:

Debug Assertion Failed!

File: f:\sp\vctools\vc7libsce\ship\atlmfc\src\mfc\winocc.cpp
Line: 339

What possibilities are there to find out more about assertions like
this? Is this source available as part of a MSDN subscription?

Yes, you should find the sources here:

C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\src\mfc
would be willing to pay for such a subscription. Surely there must be
a way to handle such assertions, or they would be there.

Just look at the code an the assertion should get you an idea which
preassumption is in a wrong state.

In your case it seems to be this method:

BOOL CWnd::IsWindowEnabled() const
{
ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL));

if (m_pCtrlSite == NULL)
return ::IsWindowEnabled(m_hWnd);
else
return m_pCtrlSite->IsWindowEnabled();
}
 
Back
Top