Click here to Skip to main content
16,011,542 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CImageList when .draw -> no more transparent Pin
Naveen8-Jan-09 18:29
Naveen8-Jan-09 18:29 
GeneralRe: CImageList when .draw -> no more transparent Pin
karhong8-Jan-09 18:42
karhong8-Jan-09 18:42 
GeneralRe: CImageList when .draw -> no more transparent Pin
Iain Clarke, Warrior Programmer9-Jan-09 0:28
Iain Clarke, Warrior Programmer9-Jan-09 0:28 
QuestionPreventing / Checking null 'this' pointer adjustment w/ Multiple Inheritance Pin
D. Miller8-Jan-09 13:18
D. Miller8-Jan-09 13:18 
AnswerRe: Preventing / Checking null 'this' pointer adjustment w/ Multiple Inheritance Pin
Stuart Dootson8-Jan-09 13:39
professionalStuart Dootson8-Jan-09 13:39 
GeneralRe: Preventing / Checking null 'this' pointer adjustment w/ Multiple Inheritance Pin
D. Miller9-Jan-09 1:47
D. Miller9-Jan-09 1:47 
GeneralRe: Preventing / Checking null 'this' pointer adjustment w/ Multiple Inheritance Pin
Stuart Dootson9-Jan-09 2:20
professionalStuart Dootson9-Jan-09 2:20 
QuestionOverflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 7:21
BobInNJ8-Jan-09 7:21 
I am currently writing an application using C++ and MFC. It has three threads. One is for the GUI interface and the other two (worker threads) do the same simulation many times. When one of the worker threads completes a simulation, it sends a message back to GUI thread, via SendMessage.

I am counting the number of messages that I am sending and the number of messages that the GUI thread is sending, and they are not the same. When I put a sleep statement in the worker thread, the problem goes away. I am thinking that I am overflowing the window’s message queue. Is there a way to verify this or to find out how many messages are in the queue at a given time? I am also wondering how big the queue is. I am using this message to return results. I am starting to think this was a bad design decision. Please comment.

Thanks

Bob
GeneralRe: Overflowing the Windows’s message Queue Pin
Luc Pattyn8-Jan-09 7:51
sitebuilderLuc Pattyn8-Jan-09 7:51 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 10:06
BobInNJ8-Jan-09 10:06 
AnswerRe: Overflowing the Windows’s message Queue Pin
Code-o-mat8-Jan-09 8:56
Code-o-mat8-Jan-09 8:56 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 10:10
BobInNJ8-Jan-09 10:10 
GeneralRe: Overflowing the Windows’s message Queue Pin
David Crow8-Jan-09 10:15
David Crow8-Jan-09 10:15 
GeneralRe: Overflowing the Windows’s message Queue Pin
Code-o-mat8-Jan-09 10:31
Code-o-mat8-Jan-09 10:31 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 11:18
BobInNJ8-Jan-09 11:18 
GeneralRe: Overflowing the Windows’s message Queue Pin
Code-o-mat8-Jan-09 21:45
Code-o-mat8-Jan-09 21:45 
GeneralRe: Overflowing the Windows’s message Queue Pin
David Crow9-Jan-09 3:32
David Crow9-Jan-09 3:32 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ9-Jan-09 6:20
BobInNJ9-Jan-09 6:20 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 12:02
BobInNJ8-Jan-09 12:02 
AnswerRe: Overflowing the Windows’s message Queue Pin
Roger Stoltz8-Jan-09 12:05
Roger Stoltz8-Jan-09 12:05 
GeneralRe: Overflowing the Windows’s message Queue Pin
Code-o-mat8-Jan-09 21:38
Code-o-mat8-Jan-09 21:38 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ9-Jan-09 8:02
BobInNJ9-Jan-09 8:02 
AnswerRe: Overflowing the Windows’s message Queue Pin
David Crow8-Jan-09 9:08
David Crow8-Jan-09 9:08 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 10:03
BobInNJ8-Jan-09 10:03 
GeneralRe: Overflowing the Windows’s message Queue Pin
David Crow8-Jan-09 10:13
David Crow8-Jan-09 10:13 

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.