peterworth
Programmer
hi,
i'm trying to figure out why a debug assertion keeps on failing in my program. it's in the initinstance funcrion of an mfc wizard created app:
pMainFrame->ShowWindow(m_nCmdShow);
ASSERT:IsWindow(pMainFrame->m_hWnd));
pMainFrame->UpdateWindow();
the assert above does NOT fail, but when updatewindow is called immediately after, it goes here:
_AFXWIN_INLINE void CWnd::UpdateWindow()
{ ASSERT:IsWindow(m_hWnd)); ::UpdateWindow(m_hWnd); }
and this assertion fails, despite being (as far as i can see) identical to the previous assertion.
i'd be very grateful if anyone can point out why this happens, thanks.
i'm trying to figure out why a debug assertion keeps on failing in my program. it's in the initinstance funcrion of an mfc wizard created app:
pMainFrame->ShowWindow(m_nCmdShow);
ASSERT:IsWindow(pMainFrame->m_hWnd));
pMainFrame->UpdateWindow();
the assert above does NOT fail, but when updatewindow is called immediately after, it goes here:
_AFXWIN_INLINE void CWnd::UpdateWindow()
{ ASSERT:IsWindow(m_hWnd)); ::UpdateWindow(m_hWnd); }
and this assertion fails, despite being (as far as i can see) identical to the previous assertion.
i'd be very grateful if anyone can point out why this happens, thanks.