Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMacros and Addins in VC7 Pin
Jim A. Johnson11-Apr-02 8:38
Jim A. Johnson11-Apr-02 8:38 
QuestionAny Class for a JTAG interface? Pin
jooan11-Apr-02 8:01
jooan11-Apr-02 8:01 
AnswerRe: Any Class for a JTAG interface? Pin
Mike Nordell11-Apr-02 8:52
Mike Nordell11-Apr-02 8:52 
GeneralRe: Any Class for a JTAG interface? Pin
Ravi Bhavnani11-Apr-02 9:16
professionalRavi Bhavnani11-Apr-02 9:16 
GeneralRe: Any Class for a JTAG interface? Pin
Mike Nordell13-Apr-02 21:42
Mike Nordell13-Apr-02 21:42 
GeneralSleep Function Pin
Anthony988711-Apr-02 7:50
Anthony988711-Apr-02 7:50 
GeneralRe: Sleep Function Pin
Nish Nishant11-Apr-02 7:52
sitebuilderNish Nishant11-Apr-02 7:52 
GeneralRe: Sleep Function Pin
#realJSOP11-Apr-02 8:41
professional#realJSOP11-Apr-02 8:41 
That's not true at all.

The task manager reports an app as "Not responding" if the app isn't handling any messages. This is determined by task manager by using the SendMessageWithTimeout() windows api function. The timeout value task manager uses is five seconds.

Sleep() simply blocks the message pump in your app, and if your app sleeps for 5 seconds or longer, task manager reports that your app has stopped responding.

If you want to get around this, you can create a thread that implements the Sleep() api call, and then terminates itself. Then, you can WaitForSingleObject() on the thread before continuing processing.

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

Please review the Legal Disclaimer in my bio.
GeneralRe: Sleep Function Pin
Tim Smith11-Apr-02 8:57
Tim Smith11-Apr-02 8:57 
GeneralRe: Sleep Function Pin
Ravi Bhavnani11-Apr-02 8:36
professionalRavi Bhavnani11-Apr-02 8:36 
GeneralPlease Help! (MS Word Automation) Pin
stilgar11-Apr-02 6:02
stilgar11-Apr-02 6:02 
QuestionListView_SetCheckState ->> Where is it? Pin
11-Apr-02 5:29
suss11-Apr-02 5:29 
AnswerRe: ListView_SetCheckState ->> Where is it? Pin
User 665811-Apr-02 10:59
User 665811-Apr-02 10:59 
AnswerRe: ListView_SetCheckState ->> Where is it? Pin
James R. Twine12-Apr-02 10:01
James R. Twine12-Apr-02 10:01 
GeneralCLSID not registered Pin
11-Apr-02 5:24
suss11-Apr-02 5:24 
GeneralPLEASE HELP!!! (MS WORD - Insert Table Tool) Pin
stilgar11-Apr-02 5:07
stilgar11-Apr-02 5:07 
GeneralHexidecimal to decimal conversion Pin
PaulJ11-Apr-02 5:09
PaulJ11-Apr-02 5:09 
GeneralRe: Hexidecimal to decimal conversion Pin
Rick York11-Apr-02 5:13
mveRick York11-Apr-02 5:13 
GeneralRe: Hexidecimal to decimal conversion Pin
Niklas L11-Apr-02 6:00
Niklas L11-Apr-02 6:00 
GeneralRe: Hexidecimal to decimal conversion Pin
Ravi Bhavnani11-Apr-02 6:20
professionalRavi Bhavnani11-Apr-02 6:20 
GeneralConsole Font/Color Pin
EvilSource11-Apr-02 4:56
EvilSource11-Apr-02 4:56 
GeneralRe: Console Font/Color Pin
moliate11-Apr-02 5:56
moliate11-Apr-02 5:56 
Generalwindow size Pin
Rajveer11-Apr-02 3:51
Rajveer11-Apr-02 3:51 
GeneralRe: window size Pin
Mazdak11-Apr-02 4:45
Mazdak11-Apr-02 4:45 
GeneralRe: window size Pin
Joel Holdsworth11-Apr-02 4:51
Joel Holdsworth11-Apr-02 4:51 

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.