Click here to Skip to main content
15,927,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What's wrong with my code? Pin
LoveInSnowing4-Oct-01 13:07
LoveInSnowing4-Oct-01 13:07 
GeneralRe: What's wrong with my code? Pin
Chaos Lawful4-Oct-01 18:28
Chaos Lawful4-Oct-01 18:28 
GeneralRe: What's wrong with my code? Pin
LoveInSnowing4-Oct-01 20:02
LoveInSnowing4-Oct-01 20:02 
AnswerRe: What's wrong with my code? Pin
| mProject |3-Oct-01 23:33
| mProject |3-Oct-01 23:33 
GeneralRe: What's wrong with my code? Pin
LoveInSnowing4-Oct-01 13:06
LoveInSnowing4-Oct-01 13:06 
QuestionWaitForSingleObject CPU 100% Utilization:-Any Ideas? Pin
sriram_mr3-Oct-01 21:27
sriram_mr3-Oct-01 21:27 
AnswerRe: WaitForSingleObject CPU 100% Utilization:-Any Ideas? Pin
3-Oct-01 22:00
suss3-Oct-01 22:00 
GeneralRe: WaitForSingleObject CPU 100% Utilization:-Any Ideas? Pin
Bernhard3-Oct-01 23:49
Bernhard3-Oct-01 23:49 
i don't really think that this is a bug.. i think it is made per design.. in an endless loop you have to install a wait - object (sleep(1)) so that the other threads have got any chance to handle their messages... (think this is a general window - programming rule.. never use endless loops without a sleep)

i had that problem in some multithreaded programs too.. after insert sleep(1) it worked perfectly..

if anybody else has another workaround you're welcome

bernhard

stolen sig#16:
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."
GeneralRe: WaitForSingleObject CPU 100% Utilization:-Any Ideas? Pin
sriram_mr4-Oct-01 0:45
sriram_mr4-Oct-01 0:45 
GeneralRe: WaitForSingleObject CPU 100% Utilization:-Any Ideas? Pin
Tomasz Sowinski4-Oct-01 2:24
Tomasz Sowinski4-Oct-01 2:24 
GeneralRe: WaitForSingleObject CPU 100% Utilization:-Any Ideas? Pin
sriram_mr4-Oct-01 5:07
sriram_mr4-Oct-01 5:07 
GeneralEnumerate Event Objects Pin
Exwhizkidilam3-Oct-01 21:24
Exwhizkidilam3-Oct-01 21:24 
GeneralRe: Enumerate Event Objects Pin
Chaos Lawful3-Oct-01 22:44
Chaos Lawful3-Oct-01 22:44 
GeneralRe: Enumerate Event Objects Pin
Exwhizkidilam4-Oct-01 18:36
Exwhizkidilam4-Oct-01 18:36 
General** Help!: Drawing objects with OpenGL(similar to the "Paint" program under windows) Pin
Steve Lai3-Oct-01 18:50
Steve Lai3-Oct-01 18:50 
GeneralRe: ** Help!: Drawing objects with OpenGL(similar to the "Paint" program under windows) Pin
Christian Graus3-Oct-01 18:55
protectorChristian Graus3-Oct-01 18:55 
GeneralRe: ** Help!: Drawing objects with OpenGL(similar to the "Paint" program under windows) Pin
Mr.Freeze3-Oct-01 19:00
Mr.Freeze3-Oct-01 19:00 
GeneralRe: ** Help!: Drawing objects with OpenGL(similar to the "Paint" program under windows) Pin
Bernhard3-Oct-01 23:46
Bernhard3-Oct-01 23:46 
GeneralDirectory Selector Dialog Pin
Xian3-Oct-01 18:13
Xian3-Oct-01 18:13 
GeneralRe: Directory Selector Dialog Pin
Christian Graus3-Oct-01 18:46
protectorChristian Graus3-Oct-01 18:46 
GeneralRe: Directory Selector Dialog Pin
Xian3-Oct-01 19:10
Xian3-Oct-01 19:10 
GeneralBreakpoints cannot be set!!! Pin
Mr.Freeze3-Oct-01 17:10
Mr.Freeze3-Oct-01 17:10 
GeneralRe: Breakpoints cannot be set!!! Pin
Chris Losinger3-Oct-01 17:15
professionalChris Losinger3-Oct-01 17:15 
GeneralRe: Breakpoints cannot be set!!! Pin
Michael Martin3-Oct-01 17:22
professionalMichael Martin3-Oct-01 17:22 
GeneralRe: Breakpoints cannot be set!!! Pin
Chaos Lawful3-Oct-01 17:40
Chaos Lawful3-Oct-01 17:40 

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.