From: Neel on
Hi all,

please help on debug assert error while using domodal().

CDeleteJed d(this);
d.DoModal();

when i debug i found assert as followed

=>

VERIFY(RunModalLoop(dwFlags) == m_nModalResult);

=>

ASSERT(ContinueModal());
// pump message, but quit on WM_QUIT
if (!AfxPumpMessage()) {
AfxPostQuitMessage(0);
return -1;
}

=>

BOOL AFXAPI AfxPumpMessage()
{
CWinThread *pThread = AfxGetThread();
if( pThread )
return pThread->PumpMessage();
else
return AfxInternalPumpMessage();
}
=>
debug assertion failed . please help

Thanks in adv.
Neel