Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

unlock problems

20 views
Skip to first unread message

Thomas Behler

unread,
Oct 16, 2003, 4:26:14 AM10/16/03
to
Hi,

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

amynk...@gmail.com

unread,
Jul 3, 2014, 2:12:39 AM7/3/14
to
I am facing the same problem. Have you encountered any solution to this? Please do let me know.
0 new messages