i have created a MFC dialog based application in Visusl C++ 6.0.
I have added a simple atl interface by using the wizard.
When i call the DCOM Object from a VB Application ,the mfc application
starts and works well.
But when i then try to cancel the dialogue the following error occurs
(but only in the debug version):
Debug Assertion failed !
File: olelock.cpp, line 69
this is:
void AFXAPI AfxOleUnlockApp()
{
AFX_MODULE_STATE* pModuleState = AfxGetModuleState();
ASSERT(pModuleState->m_nObjectCount != 0);
if (InterlockedDecrement(&pModuleState->m_nObjectCount) ==
0) <---------------------------- line 69
{
// allow application to shut down when all the objects have
// been released
::AfxOleOnReleaseAllObjects();
}
}
Of course, i know, pModuleState->m_nObjectCount is 0,
but what do i wrong ?
Can anybody help me to solve this problem ?
Greetings
Thomas