ysbhushan
asked on
MFC-DLL State
I created an MFC DLL which will be launched on a thread from a Driver. The Window of the DLL is made Modal by using RunModalLoop().
But the following chunk of code is giving Access Violation
CMainFrm::OnClose()
{
//My Processing
EndModalLoop(0);
CFrameWnd::OnClose()
}
The access violation is due to the DestroyWindow() in CFrameWnd::OnClose(). The function ContinueModal is failing because the MainFrame exists no more.
Can anyone help me?
But the following chunk of code is giving Access Violation
CMainFrm::OnClose()
{
//My Processing
EndModalLoop(0);
CFrameWnd::OnClose()
}
The access violation is due to the DestroyWindow() in CFrameWnd::OnClose(). The function ContinueModal is failing because the MainFrame exists no more.
Can anyone help me?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, Should have posted this as a comment not an answer