Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What's wrong with my code? Pin
Chaos Lawful3-Oct-01 23:29
Chaos Lawful3-Oct-01 23:29 
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 
I had the same pb in this loop which was implemented in a thread :

while(TRUE)
{
...something to do
}

I found the solution by adding a Sleep() inside the loop like this :

while(TRUE)
{
... your code
Sleep(1); // 0 has no effect
}

Now, is it a bug from Microsoft ?

Hope that can help you. Smile | :)

GeneralRe: WaitForSingleObject CPU 100% Utilization:-Any Ideas? Pin
Bernhard3-Oct-01 23:49
Bernhard3-Oct-01 23:49 
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 

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.