I am Using Visual C++ Standard 2003 In the document header are the following declarations CCriticalSection ImageInfoSyncObject; CSingleLock * pImageInfoLock; In the constructor of the document .ccp file a new single lock object is created CDoc::CDoc() { pImageInfoLock = new CSingleLock (&ImageInfoSyncObject); } Then I use the lock and unlock within a function. Void CDoc::Function() { pImageInfoLock->Lock (); //Code . . . . pImageInfoLock->UnLock (); } Has anybody any further ideas as to why I get the Debug Assertion Failure for mtex.ccp line 106 Thanks MTM
mcgmil
Posts
-
CSingleLock Assertion Failed -
CSingleLock Assertion FailedHi I am using CSingleLock in a program with a primary thread and a worker thread. On start up or if I do certain operations (both in debug mode) the debuger throws up a Debug Assertion at line 160 in mtex.cpp. Line 160 shows the floowing ASSERT(!m_bAcquired); Does anybody know what the problem is as it’s driving me crazy. Thanks in advance. MTM
-
Deleting classes in C++ v7 (.NET)Thanks, the Phantom has gone.:-D
-
Deleting classes in C++ v7 (.NET)I am trying to delete an unwanted class. I am using C++.NET and I am having difficulties (to say the least). I have “physically” deleted the files from the folder where they are stored and I have also “physically” deleted the .obj file. I have then cleaned the sln. When I try to build the sln I get a LINKER error for unresolved external. Can anybody please tell me what else I should do to get rid of this class that is haunting me? Thanks in advance:)