Click here to Skip to main content
15,891,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: a problem about stackoverflow Pin
nibabug12-Oct-07 3:51
nibabug12-Oct-07 3:51 
GeneralRe: a problem about stackoverflow Pin
David Crow12-Oct-07 3:56
David Crow12-Oct-07 3:56 
GeneralRe: a problem about stackoverflow Pin
toxcct12-Oct-07 4:36
toxcct12-Oct-07 4:36 
QuestionRe: a problem about stackoverflow Pin
David Crow12-Oct-07 4:43
David Crow12-Oct-07 4:43 
AnswerRe: a problem about stackoverflow Pin
toxcct12-Oct-07 4:47
toxcct12-Oct-07 4:47 
AnswerRe: a problem about stackoverflow Pin
nibabug12-Oct-07 4:11
nibabug12-Oct-07 4:11 
GeneralRe: a problem about stackoverflow Pin
David Crow12-Oct-07 4:32
David Crow12-Oct-07 4:32 
GeneralRe: a problem about stackoverflow Pin
Mike Dimmick12-Oct-07 6:10
Mike Dimmick12-Oct-07 6:10 
It's not just the timer - a thread hosting Windows UI can only process one message at a time, after all. The problem is that the MessageBox call and the modal dialog create nested message loops, which will process timer messages and thereby cause recursion.

Most likely it's one of the AfxMessageBox calls in the exception handlers in the OnTimer routine which is causing OnTimer to go re-entrant.


DoEvents: Generating unexpected recursion since 1991

GeneralRe: a problem about stackoverflow Pin
nibabug12-Oct-07 15:24
nibabug12-Oct-07 15:24 
AnswerRe: a problem about stackoverflow Pin
Jonathan [Darka]12-Oct-07 3:44
professionalJonathan [Darka]12-Oct-07 3:44 
QuestionMonitor hard drive light via a C++ program in Windows XP Pin
isikorsky9112-Oct-07 3:22
isikorsky9112-Oct-07 3:22 
QuestionRe: Monitor hard drive light via a C++ program in Windows XP Pin
David Crow12-Oct-07 3:43
David Crow12-Oct-07 3:43 
AnswerRe: Monitor hard drive light via a C++ program in Windows XP Pin
isikorsky9112-Oct-07 3:48
isikorsky9112-Oct-07 3:48 
GeneralRe: Monitor hard drive light via a C++ program in Windows XP Pin
David Crow12-Oct-07 3:54
David Crow12-Oct-07 3:54 
GeneralRe: Monitor hard drive light via a C++ program in Windows XP Pin
isikorsky9112-Oct-07 5:16
isikorsky9112-Oct-07 5:16 
GeneralRe: Monitor hard drive light via a C++ program in Windows XP Pin
David Crow12-Oct-07 5:24
David Crow12-Oct-07 5:24 
GeneralRe: Monitor hard drive light via a C++ program in Windows XP Pin
isikorsky9112-Oct-07 8:24
isikorsky9112-Oct-07 8:24 
GeneralRe: Monitor hard drive light via a C++ program in Windows XP Pin
David Crow12-Oct-07 8:42
David Crow12-Oct-07 8:42 
QuestionInserting a table in dialog... Pin
gReaen12-Oct-07 2:44
gReaen12-Oct-07 2:44 
AnswerRe: Inserting a table in dialog... Pin
David Crow12-Oct-07 2:50
David Crow12-Oct-07 2:50 
GeneralRe: Inserting a table in dialog... Pin
gReaen12-Oct-07 3:01
gReaen12-Oct-07 3:01 
AnswerRe: Inserting a table in dialog... Pin
chandu00412-Oct-07 3:12
chandu00412-Oct-07 3:12 
QuestionConstant member variable Pin
ashishbhatt12-Oct-07 2:20
ashishbhatt12-Oct-07 2:20 
AnswerRe: Constant member variable Pin
Nibu babu thomas12-Oct-07 2:35
Nibu babu thomas12-Oct-07 2:35 
GeneralRe: Constant member variable Pin
ashishbhatt12-Oct-07 16:40
ashishbhatt12-Oct-07 16: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.