Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dynamic linking vs dynamic loading PinPopular
Chris Losinger21-Feb-12 5:47
professionalChris Losinger21-Feb-12 5:47 
QuestionHow to increase concurrent rate of a server application Pin
yu-jian21-Feb-12 3:30
yu-jian21-Feb-12 3:30 
AnswerRe: How to increase concurrent rate of a server application Pin
Richard MacCutchan21-Feb-12 5:20
mveRichard MacCutchan21-Feb-12 5:20 
AnswerRe: How to increase concurrent rate of a server application Pin
Randor 21-Feb-12 8:32
professional Randor 21-Feb-12 8:32 
QuestionWin7 - worker thread freeze on call to WaitForSingleObject Pin
Stan the man21-Feb-12 0:12
Stan the man21-Feb-12 0:12 
AnswerRe: Win7 - worker thread freeze on call to WaitForSingleObject Pin
Jochen Arndt21-Feb-12 0:29
professionalJochen Arndt21-Feb-12 0:29 
GeneralRe: Win7 - worker thread freeze on call to WaitForSingleObject Pin
Stan the man21-Feb-12 1:31
Stan the man21-Feb-12 1:31 
AnswerRe: Win7 - worker thread freeze on call to WaitForSingleObject Pin
bjorn_ht21-Feb-12 1:16
bjorn_ht21-Feb-12 1:16 
From the code example I take it that you create the Save2CWGCoilRep thread from the UI thread, i.e. from a menu or button handler function. My guess then is that you have a deadlock:

1. The background thread sends messages to the UI thread. Maybe it tries to display a message box, but it could be anything really.

2. The UI thread is suspended in WaitForSingleObject and can't process the message.

It's risky to suspend the UI thread as you don't know when or why messages are posted to it. I would instead protect the critical parts of Save2CWGCoilRep with a critical section and take away the WaitForSingleObject call in the UI thread.
AnswerRe: Win7 - worker thread freeze on call to WaitForSingleObject Pin
Erudite_Eric21-Feb-12 2:31
Erudite_Eric21-Feb-12 2:31 
QuestionInitializing base class data Pin
SunilKrSingh20-Feb-12 3:46
SunilKrSingh20-Feb-12 3:46 
AnswerRe: Initializing base class data Pin
prasad_som20-Feb-12 6:49
prasad_som20-Feb-12 6:49 
AnswerRe: Initializing base class data Pin
enhzflep20-Feb-12 14:02
enhzflep20-Feb-12 14:02 
GeneralRe: Initializing base class data Pin
SunilKrSingh20-Feb-12 18:37
SunilKrSingh20-Feb-12 18:37 
GeneralRe: Initializing base class data Pin
enhzflep20-Feb-12 18:53
enhzflep20-Feb-12 18:53 
GeneralRe: Initializing base class data Pin
SunilKrSingh20-Feb-12 19:02
SunilKrSingh20-Feb-12 19:02 
QuestionIplImage to Halcon Image Pin
Member 788510519-Feb-12 16:19
Member 788510519-Feb-12 16:19 
AnswerRe: IplImage to Halcon Image Pin
Richard MacCutchan19-Feb-12 22:09
mveRichard MacCutchan19-Feb-12 22:09 
QuestionHOWTO: HH.exe is not listed in taskmgr.exe Pin
cyysoft17-Feb-12 16:14
cyysoft17-Feb-12 16:14 
AnswerRe: HOWTO: HH.exe is not listed in taskmgr.exe Pin
Rajesh R Subramanian17-Feb-12 18:45
professionalRajesh R Subramanian17-Feb-12 18:45 
GeneralRe: HOWTO: HH.exe is not listed in taskmgr.exe Pin
Richard Andrew x6418-Feb-12 10:19
professionalRichard Andrew x6418-Feb-12 10:19 
GeneralRe: HOWTO: HH.exe is not listed in taskmgr.exe Pin
Albert Holguin18-Feb-12 14:27
professionalAlbert Holguin18-Feb-12 14:27 
GeneralRe: HOWTO: HH.exe is not listed in taskmgr.exe Pin
KASR121-Feb-12 6:50
KASR121-Feb-12 6:50 
GeneralRe: HOWTO: HH.exe is not listed in taskmgr.exe Pin
Eddy Vluggen21-Feb-12 8:52
professionalEddy Vluggen21-Feb-12 8:52 
QuestionShare C file across dll boundaries Pin
LionAM17-Feb-12 12:40
LionAM17-Feb-12 12:40 
AnswerRe: Share C file across dll boundaries Pin
Chris Losinger17-Feb-12 18:09
professionalChris Losinger17-Feb-12 18:09 

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.