Click here to Skip to main content
15,912,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regsvr32 writes an error Pin
David Crow29-Sep-04 7:20
David Crow29-Sep-04 7:20 
GeneralRe: Regsvr32 writes an error Pin
Mike Beckerleg29-Sep-04 11:44
Mike Beckerleg29-Sep-04 11:44 
GeneralRe: Regsvr32 writes an error Pin
Rassul Yunussov29-Sep-04 18:14
Rassul Yunussov29-Sep-04 18:14 
GeneralRe: Regsvr32 writes an error Pin
Mike Beckerleg29-Sep-04 21:50
Mike Beckerleg29-Sep-04 21:50 
GeneralRe: Regsvr32 writes an error Pin
Rassul Yunussov29-Sep-04 18:34
Rassul Yunussov29-Sep-04 18:34 
GeneralRe: Regsvr32 writes an error Pin
BAIJUMAX29-Sep-04 20:01
professionalBAIJUMAX29-Sep-04 20:01 
GeneralTHREAD PROBLEM- PLEASE HELP Pin
ledallam29-Sep-04 6:59
ledallam29-Sep-04 6:59 
GeneralRe: THREAD PROBLEM- PLEASE HELP Pin
G. Steudtel29-Sep-04 7:56
G. Steudtel29-Sep-04 7:56 
Hi
as I don't know the context and what you try to do, I just may guess.

I see two problems. The minor one being the HANDLE to an event of beimg volatile. That means everytime your loop is executing the Handle will be retrieved anew. To my opinion it should not change throughout the lifetime of the thread.
The real big problem is Sleep(1).
You have an infinite loop, that means that the programlines are executed over and over again, with just a millisecond sleep at the end.
Try switching the number to 500 or so, to give the CPU more time to execute other threads/programs. Or try to avoid the loop.

Regards

GSte
GeneralRe: THREAD PROBLEM- PLEASE HELP Pin
ledallam29-Sep-04 18:30
ledallam29-Sep-04 18:30 
GeneralRe: THREAD PROBLEM- PLEASE HELP Pin
Max Santos29-Sep-04 10:18
Max Santos29-Sep-04 10:18 
GeneralModify the date/time stamp in code Pin
Alan Chambers29-Sep-04 6:46
Alan Chambers29-Sep-04 6:46 
GeneralRe: Modify the date/time stamp in code Pin
David Crow29-Sep-04 7:26
David Crow29-Sep-04 7:26 
GeneralRe: Modify the date/time stamp in code Pin
Maximilien29-Sep-04 7:32
Maximilien29-Sep-04 7:32 
GeneralRe: Modify the date/time stamp in code Pin
Alan Chambers29-Sep-04 10:22
Alan Chambers29-Sep-04 10:22 
GeneralRe: Modify the date/time stamp in code Pin
Alan Chambers29-Sep-04 13:49
Alan Chambers29-Sep-04 13:49 
GeneralWizard support for other languages in Visual C++ 6.0 Pin
vegeakhil29-Sep-04 6:34
vegeakhil29-Sep-04 6:34 
GeneralRe: Wizard support for other languages in Visual C++ 6.0 Pin
vegeakhil29-Sep-04 9:24
vegeakhil29-Sep-04 9:24 
GeneralC++ ques. Pin
Ann6629-Sep-04 6:27
sussAnn6629-Sep-04 6:27 
GeneralRe: C++ ques. Pin
Bob Stanneveld29-Sep-04 6:29
Bob Stanneveld29-Sep-04 6:29 
GeneralRe: C++ ques. Pin
Ann6629-Sep-04 6:47
sussAnn6629-Sep-04 6:47 
GeneralRe: C++ ques. Pin
Bob Stanneveld29-Sep-04 6:56
Bob Stanneveld29-Sep-04 6:56 
GeneralRe: C++ ques. Pin
Ann6629-Sep-04 7:09
sussAnn6629-Sep-04 7:09 
GeneralRe: C++ ques. Pin
David Crow29-Sep-04 7:23
David Crow29-Sep-04 7:23 
GeneralRe: C++ ques. Pin
Ann6629-Sep-04 7:30
sussAnn6629-Sep-04 7:30 
GeneralRe: C++ ques. Pin
David Crow29-Sep-04 7:36
David Crow29-Sep-04 7:36 

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.