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

C / C++ / MFC

 
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 
I remember your post about this, but wouldn't that method that gets called update the GUI? If not, then i misunderstood you...if it doesn't actually fiddle with windows then the lock-aproach is better. However, if you want to fiddle with the gui, like redrawing counters, you either have to use messages as you tried (but if there are a lot of the messages, as you experienced, this can cludge the GUI) or use polling.
On a different aproach, you might place Sleep(0) or Sleep(1) in your secondary threads at the right places to give other threads the chanche to do their business but of course this might produce slowdown of the whole thing.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <

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 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 11:12
BobInNJ8-Jan-09 11:12 
QuestionRe: Overflowing the Windows’s message Queue Pin
Roger Stoltz8-Jan-09 12:11
Roger Stoltz8-Jan-09 12:11 
GeneralRe: Overflowing the Windows’s message Queue Pin
Luc Pattyn8-Jan-09 13:21
sitebuilderLuc Pattyn8-Jan-09 13:21 
GeneralRe: Overflowing the Windows’s message Queue Pin
Roger Stoltz8-Jan-09 22:30
Roger Stoltz8-Jan-09 22:30 
AnswerRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 14:24
BobInNJ8-Jan-09 14:24 
GeneralRe: Overflowing the Windows’s message Queue Pin
Cedric Moonen8-Jan-09 20:27
Cedric Moonen8-Jan-09 20:27 
GeneralRe: Overflowing the Windows’s message Queue Pin
Roger Stoltz8-Jan-09 22:54
Roger Stoltz8-Jan-09 22:54 
GeneralRe: Overflowing the Windows’s message Queue Pin
Cedric Moonen8-Jan-09 22:57
Cedric Moonen8-Jan-09 22:57 

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.