Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WaitForInputIdle parent process gets access exception Pin
leon de boer20-Mar-16 22:16
leon de boer20-Mar-16 22:16 
GeneralRe: WaitForInputIdle parent process gets access exception Pin
ForNow21-Mar-16 2:56
ForNow21-Mar-16 2:56 
GeneralThe Exception was caused by unrelated exception which I fixed WaitForInputHandle Works Thanks for your help Pin
ForNow21-Mar-16 8:35
ForNow21-Mar-16 8:35 
Questionembed WxWidgets in MFC applications? Pin
Member 853403519-Mar-16 4:50
Member 853403519-Mar-16 4:50 
Questionxx Pin
Member 1240241718-Mar-16 12:12
Member 1240241718-Mar-16 12:12 
AnswerRe: Minesweeper Game reversing hack -ASM Pin
Richard MacCutchan18-Mar-16 23:04
mveRichard MacCutchan18-Mar-16 23:04 
QuestionHow to Mix MFC Controls and OpenGL? Pin
Member 853403517-Mar-16 23:33
Member 853403517-Mar-16 23:33 
QuestionHow to perform Expression Evaluation Pin
Member 1239950317-Mar-16 8:32
Member 1239950317-Mar-16 8:32 
QuestionRe: How to perform Expression Evaluation Pin
David Crow17-Mar-16 10:11
David Crow17-Mar-16 10:11 
GeneralRe: How to perform Expression Evaluation Pin
Sascha Lefèvre17-Mar-16 10:52
professionalSascha Lefèvre17-Mar-16 10:52 
AnswerRe: How to perform Expression Evaluation Pin
Chris Losinger17-Mar-16 12:33
professionalChris Losinger17-Mar-16 12:33 
GeneralRe: How to perform Expression Evaluation Pin
Patrice T17-Mar-16 13:11
mvePatrice T17-Mar-16 13:11 
AnswerRe: How to perform Expression Evaluation Pin
Patrice T17-Mar-16 13:09
mvePatrice T17-Mar-16 13:09 
AnswerRe: How to perform Expression Evaluation Pin
Bram van Kampen22-Mar-16 14:16
Bram van Kampen22-Mar-16 14:16 
GeneralRe: How to perform Expression Evaluation Pin
David Crow23-Mar-16 2:28
David Crow23-Mar-16 2:28 
GeneralRe: How to perform Expression Evaluation Pin
Bram van Kampen25-Mar-16 13:11
Bram van Kampen25-Mar-16 13:11 
AnswerRe: How to perform Expression Evaluation Pin
Alan Balkany8-Apr-16 6:53
Alan Balkany8-Apr-16 6:53 
QuestionVagarities of Multiple threads in Windows Pin
Bram van Kampen16-Mar-16 14:36
Bram van Kampen16-Mar-16 14:36 
AnswerRe: Vagarities of Multiple threads in Windows Pin
Jochen Arndt16-Mar-16 21:59
professionalJochen Arndt16-Mar-16 21:59 
AnswerRe: Vagarities of Multiple threads in Windows Pin
Richard MacCutchan16-Mar-16 23:05
mveRichard MacCutchan16-Mar-16 23:05 
GeneralRe: Vagarities of Multiple threads in Windows Pin
Bram van Kampen17-Mar-16 16:30
Bram van Kampen17-Mar-16 16:30 
Well,
I also consider it Unlikely, but that is what both Concept mistakes and stupid Bugs are made of.

The Tick Messages are sent to the Application. The Application has a List of Structures, consisting of: the hWnd of the Dialog, the Default TimeOut, and the Current Count. Upon every tick the Top Count get decremented, and, when it reaches 0, a Registered Windows Message, WM_REG_TIME_OUT is sent to all Dialogs, in Sequence. The CTimedDialog primitive answers to this by a virtual OnDlgTimeOut(), which by default ends the dialog by OnEndDialog(IDABORT). If the Dialog ends for "Natural" reasons, the EndDialog() of CTimedDialog Pops the reference to the Top Dialog of the list, and resets the Current Count of the new Top Object to it's Default value. I have used a CRITICAL_SECTION where needed, but did not go over the top with belts and braces.

The Time-Out bar on the dialogs is more of a debug feature than anything else. It assures me that the clock is ticking, and that things did not deadlock.

Thanks for giving me the foothold for assuring me that I am not doing something fundamentally wrong,as other books and autors seem to suggest. (NEVER mix a Worker and a GUI Thread) my Concept is at least not wrong in your judgement. I Start looking for a stupid mistake somewhere.

Timed and Activity based actions are notoriously difficult to debug.

Stupid Mistakes, (and I made many in the past 60 odd years), are the most difficult ones to find.
I'll let you know when I discover what went wrong. I also think that when I get it right, that the subject is of sufficient interest to merit an article.

Regards, Smile | :)
Bram van Kampen

GeneralRe: Vagarities of Multiple threads in Windows Pin
Richard MacCutchan17-Mar-16 22:51
mveRichard MacCutchan17-Mar-16 22:51 
GeneralRe: Vagarities of Multiple threads in Windows Pin
Bram van Kampen18-Mar-16 17:57
Bram van Kampen18-Mar-16 17:57 
GeneralRe: Vagarities of Multiple threads in Windows Pin
Richard MacCutchan18-Mar-16 22:57
mveRichard MacCutchan18-Mar-16 22:57 
GeneralRe: Vagarities of Multiple threads in Windows Pin
Bram van Kampen19-Mar-16 13:41
Bram van Kampen19-Mar-16 13:41 

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.