Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: why it dont work Pin
David Crow13-Oct-04 10:52
David Crow13-Oct-04 10:52 
GeneralRe: why it dont work Pin
Maximilien13-Oct-04 11:19
Maximilien13-Oct-04 11:19 
GeneralRe: why it dont work Pin
Anonymous13-Oct-04 11:38
Anonymous13-Oct-04 11:38 
GeneralRe: why it dont work Pin
Maximilien13-Oct-04 13:16
Maximilien13-Oct-04 13:16 
GeneralRe: why it dont work Pin
Mad__14-Oct-04 0:45
Mad__14-Oct-04 0:45 
GeneralHelp me with thread performance Pin
Budric B.13-Oct-04 10:20
Budric B.13-Oct-04 10:20 
GeneralRe: Help me with thread performance Pin
Joaquín M López Muñoz13-Oct-04 11:17
Joaquín M López Muñoz13-Oct-04 11:17 
GeneralRe: Help me with thread performance Pin
Michael Dunn13-Oct-04 20:22
sitebuilderMichael Dunn13-Oct-04 20:22 
Any time you spin in a tight loop in a worker thread, it will suck up as much CPU time as the system will give it. Look in Task Manager and you'll see the CPU pegged.
And since that thread is doing so much work, it ends up posting a ton of messages to the main thread (via Invalidate(), which generates WM_ERASEBKGND, WM_NCPAINT, and WM_PAINT, maybe others too). Since the thread is hogging the CPU, the main thread can't process those messages as quickly as if the thread weren't running.

--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ

----
Ford, what's this fish doing in my ear?
GeneralRe: Help me with thread performance Pin
Henry miller14-Oct-04 2:24
Henry miller14-Oct-04 2:24 
GeneralRe: Help me with thread performance Pin
Blake Miller14-Oct-04 4:42
Blake Miller14-Oct-04 4:42 
GeneralRe: Help me with thread performance Pin
Budric B.14-Oct-04 6:39
Budric B.14-Oct-04 6:39 
QuestionCopying Files -- On the Right Track? Pin
Ian Bowler13-Oct-04 9:05
Ian Bowler13-Oct-04 9:05 
AnswerRe: Copying Files -- On the Right Track? Pin
David Crow13-Oct-04 10:33
David Crow13-Oct-04 10:33 
AnswerRe: Copying Files -- On the Right Track? Pin
Maximilien13-Oct-04 10:33
Maximilien13-Oct-04 10:33 
GeneralRe: Copying Files -- On the Right Track? Pin
Ian Bowler13-Oct-04 11:47
Ian Bowler13-Oct-04 11:47 
Generalpointer question Pin
Anonymous13-Oct-04 8:22
Anonymous13-Oct-04 8:22 
GeneralRe: pointer question Pin
Budric B.13-Oct-04 8:34
Budric B.13-Oct-04 8:34 
GeneralRe: pointer question Pin
Anonymous13-Oct-04 8:45
Anonymous13-Oct-04 8:45 
GeneralRe: pointer question Pin
TFrancis13-Oct-04 8:58
TFrancis13-Oct-04 8:58 
GeneralRe: pointer question Pin
Budric B.13-Oct-04 9:00
Budric B.13-Oct-04 9:00 
GeneralRe: pointer question Pin
Tyrus18213-Oct-04 17:17
Tyrus18213-Oct-04 17:17 
GeneralRe: pointer question Pin
Anonymous13-Oct-04 17:21
Anonymous13-Oct-04 17:21 
GeneralRe: pointer question Pin
Henry miller14-Oct-04 2:31
Henry miller14-Oct-04 2:31 
GeneralC++/MFC tests Pin
BlackDice13-Oct-04 7:42
BlackDice13-Oct-04 7:42 
GeneralRe: C++/MFC tests Pin
David Crow13-Oct-04 10:35
David Crow13-Oct-04 10:35 

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.