Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsend message from thread to extended MFC DLL Pin
iz722-Sep-05 9:15
iz722-Sep-05 9:15 
AnswerRe: send message from thread to extended MFC DLL Pin
MailtoGops22-Sep-05 18:33
MailtoGops22-Sep-05 18:33 
Questionconverting char* to TCHAR? Pin
Member 227578522-Sep-05 7:48
Member 227578522-Sep-05 7:48 
AnswerRe: converting char* to TCHAR? Pin
Joe Woodbury22-Sep-05 7:56
professionalJoe Woodbury22-Sep-05 7:56 
Questionfixed length hexidecimal Pin
Ryan Riel22-Sep-05 7:25
Ryan Riel22-Sep-05 7:25 
AnswerRe: fixed length hexidecimal Pin
David Crow22-Sep-05 7:40
David Crow22-Sep-05 7:40 
GeneralRe: fixed length hexidecimal Pin
Ryan Riel22-Sep-05 7:51
Ryan Riel22-Sep-05 7:51 
QuestionMultithreading Oddness Pin
Joel Holdsworth22-Sep-05 6:56
Joel Holdsworth22-Sep-05 6:56 
Hi,

I'm writing a multithreaded app and I'm having some bizzare problems. I have a worker thread which has a critical section. As the application starts up, it locks a whole bunch of times, and unlocks a whole bunch more times, no problems, every single lock is followed by an unlock. Then I call Sleep, after I've called sleep, I try and lock the CCriticalSection again, and the worker thread hangs permanently. This is bizzare because I've put TRACE0s in every single function that has access to that critical section, and none of them are called while my worker is sleeping. It's like somehow my critical section is getting locked, even though nobody seems to be locking it. Does anyone have any bright ideas about how my CCriticalSection might be being locked without me realising it? Is there any good way of knowing when and who is locking my critical section?

Joel Holdsworth
AnswerRe: Multithreading Oddness Pin
Joel Holdsworth22-Sep-05 7:22
Joel Holdsworth22-Sep-05 7:22 
GeneralRe: Multithreading Oddness Pin
peterchen22-Sep-05 8:14
peterchen22-Sep-05 8:14 
GeneralRe: Multithreading Oddness Pin
Joel Holdsworth22-Sep-05 9:44
Joel Holdsworth22-Sep-05 9:44 
AnswerRe: Multithreading Oddness Pin
Laffis22-Sep-05 11:55
Laffis22-Sep-05 11:55 
AnswerRe: Multithreading Oddness Pin
kerrywes22-Sep-05 12:57
kerrywes22-Sep-05 12:57 
GeneralRe: Multithreading Oddness Pin
Joel Holdsworth22-Sep-05 21:53
Joel Holdsworth22-Sep-05 21:53 
GeneralRe: Multithreading Oddness Pin
Laffis22-Sep-05 22:02
Laffis22-Sep-05 22:02 
GeneralRe: Multithreading Oddness Pin
Steen Krogsgaard22-Sep-05 22:44
Steen Krogsgaard22-Sep-05 22:44 
GeneralRe: Multithreading Oddness Pin
kerrywes23-Sep-05 6:11
kerrywes23-Sep-05 6:11 
AnswerRe: Multithreading Oddness Pin
cmk25-Sep-05 21:06
cmk25-Sep-05 21:06 
QuestionATL :( Pin
Eytukan22-Sep-05 6:34
Eytukan22-Sep-05 6:34 
AnswerRe: ATL :( Pin
peterchen22-Sep-05 8:23
peterchen22-Sep-05 8:23 
Questionfile associations Pin
mikeorama1234522-Sep-05 5:51
mikeorama1234522-Sep-05 5:51 
AnswerRe: file associations Pin
David Crow22-Sep-05 7:12
David Crow22-Sep-05 7:12 
Generalwhat does the DDEXEC part do? Pin
peterchen22-Sep-05 8:27
peterchen22-Sep-05 8:27 
GeneralRe: what does the DDEXEC part do? Pin
David Crow22-Sep-05 8:38
David Crow22-Sep-05 8:38 
QuestionDelete file from temporary internet files? Pin
DanYELL22-Sep-05 5:42
DanYELL22-Sep-05 5:42 

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.