Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
I think there are two possibilites for high CPU utilization:

1) TRACE - it may scroll and repaint the Output window. It's easy to check, just remove the call and check the utilization.

2) while WaitForSingleObject doesn't tax the processor during wait, it may use some cycles when entering and exiting the wait state. However, 300ms is quite long time to amortize these costs.

Tomasz Sowinski -- http://www.shooltz.com
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 
GeneralStill not working... Pin
Mr.Freeze3-Oct-01 18:50
Mr.Freeze3-Oct-01 18:50 
GeneralRe: Still not working... Pin
Chaos Lawful3-Oct-01 19:02
Chaos Lawful3-Oct-01 19:02 

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.