Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: RightToLeft property [modified] Pin
includeh1012-Jul-06 3:33
includeh1012-Jul-06 3:33 
AnswerRe: RightToLeft property Pin
David Crow12-Jul-06 4:36
David Crow12-Jul-06 4:36 
QuestionLocalization in Input String and Log files. Pin
karthik Tamizhmathi12-Jul-06 3:11
karthik Tamizhmathi12-Jul-06 3:11 
QuestionHow to write KeyboardProc() Pin
Max++12-Jul-06 3:09
Max++12-Jul-06 3:09 
AnswerRe: How to write KeyboardProc() Pin
includeh1012-Jul-06 3:22
includeh1012-Jul-06 3:22 
QuestionItems appear twice in 'Find' results Pin
LittleYellowBird12-Jul-06 3:00
LittleYellowBird12-Jul-06 3:00 
Questioncan ChooseFont use ChooseColor? Pin
includeh1012-Jul-06 2:42
includeh1012-Jul-06 2:42 
AnswerRe: can ChooseFont use ChooseColor? Pin
_AnsHUMAN_ 12-Jul-06 5:03
_AnsHUMAN_ 12-Jul-06 5:03 
GeneralRe: can ChooseFont use ChooseColor? Pin
includeh1012-Jul-06 5:45
includeh1012-Jul-06 5:45 
QuestionComunicating Gina with user mode App or service Pin
Kharfax12-Jul-06 2:25
Kharfax12-Jul-06 2:25 
AnswerRe: Comunicating Gina with user mode App or service Pin
Steve S12-Jul-06 3:07
Steve S12-Jul-06 3:07 
GeneralRe: Comunicating Gina with user mode App or service Pin
Kharfax12-Jul-06 3:16
Kharfax12-Jul-06 3:16 
GeneralRe: Comunicating Gina with user mode App or service Pin
Kharfax12-Jul-06 3:29
Kharfax12-Jul-06 3:29 
GeneralRe: Comunicating Gina with user mode App or service Pin
Kharfax12-Jul-06 9:58
Kharfax12-Jul-06 9:58 
QuestionMember Function [modified] Pin
ashish dogra12-Jul-06 2:21
ashish dogra12-Jul-06 2:21 
AnswerRe: Member Function Pin
Abhi Lahare12-Jul-06 2:28
Abhi Lahare12-Jul-06 2:28 
GeneralRe: Member Function Pin
ashish dogra12-Jul-06 2:37
ashish dogra12-Jul-06 2:37 
GeneralRe: Member Function Pin
Kharfax12-Jul-06 2:48
Kharfax12-Jul-06 2:48 
GeneralRe: Member Function Pin
ashish dogra12-Jul-06 2:52
ashish dogra12-Jul-06 2:52 
GeneralRe: Member Function Pin
David Crow12-Jul-06 2:57
David Crow12-Jul-06 2:57 
GeneralRe: Member Function Pin
Zac Howland12-Jul-06 3:59
Zac Howland12-Jul-06 3:59 
QuestionCSingleLock Assertion Failed Pin
mcgmil12-Jul-06 2:19
mcgmil12-Jul-06 2:19 
QuestionRe: CSingleLock Assertion Failed Pin
David Crow12-Jul-06 2:44
David Crow12-Jul-06 2:44 
AnswerRe: CSingleLock Assertion Failed [modified] Pin
o.sanchez12-Jul-06 2:50
o.sanchez12-Jul-06 2:50 
GeneralRe: CSingleLock Assertion Failed Pin
mcgmil12-Jul-06 5:37
mcgmil12-Jul-06 5:37 
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

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.