Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VS2008 Debugger and CStrings - inconistent display Pin
charlieg9-Jan-17 10:47
charlieg9-Jan-17 10:47 
QuestionMultithreading question Pin
ForNow7-Jan-17 16:36
ForNow7-Jan-17 16:36 
AnswerRe: Multithreading question Pin
Daniel Pfeffer7-Jan-17 19:02
professionalDaniel Pfeffer7-Jan-17 19:02 
GeneralRe: Multithreading question Pin
harold aptroot7-Jan-17 19:52
harold aptroot7-Jan-17 19:52 
AnswerRe: Multithreading question Pin
Richard MacCutchan7-Jan-17 20:51
mveRichard MacCutchan7-Jan-17 20:51 
AnswerRe: Multithreading question Pin
leon de boer8-Jan-17 20:03
leon de boer8-Jan-17 20:03 
GeneralRe: Multithreading question Pin
Jon McKee8-Jan-17 20:58
professionalJon McKee8-Jan-17 20:58 
GeneralRe: Multithreading question Pin
ForNow8-Jan-17 22:30
ForNow8-Jan-17 22:30 
Thanks
The visual studio thread window I know has the ability to freeze a thread
Regardless I'll down load the
Extension

Let me explain the nature of the problem

I'm writting a debugger for another platform
The way I Interrupt the program and show the user the code is by overlaying the instruction which causes a interrupt and allows me to get control
I quickly put back the instruction that was overlayed
However the interrupt gives me control
This all fine when the "Debugged" program is single thread
However in a multi thread program in which other programs use he same code
I get a operation exception
The way I coded this was the as soon as I overlay the instruction I do a Restevent which cause an event to be non- signaled this will cause the other programs to Wait or WaitForSingleEvent until I have chance to put the instruction back and then I do a SetEvent to let execution of the program to the other threads trying to execute it

Something is obviously not working out right in this timing

In Visual Sudio I can observe how QUICKLY the windows dispatcher switches from thread to thread

Thanks
GeneralRe: Multithreading question Pin
leon de boer9-Jan-17 18:23
leon de boer9-Jan-17 18:23 
GeneralRe: Multithreading question Pin
ForNow9-Jan-17 18:57
ForNow9-Jan-17 18:57 
GeneralRe: Multithreading question Pin
leon de boer10-Jan-17 23:23
leon de boer10-Jan-17 23:23 
GeneralRe: Multithreading question The Code Pin
ForNow11-Jan-17 12:29
ForNow11-Jan-17 12:29 
GeneralRe: Multithreading question The Code Pin
leon de boer12-Jan-17 14:38
leon de boer12-Jan-17 14:38 
GeneralRe: Multithreading question The Code Pin
ForNow13-Jan-17 3:28
ForNow13-Jan-17 3:28 
GeneralRe: Multithreading question The Code Pin
leon de boer14-Jan-17 22:47
leon de boer14-Jan-17 22:47 
GeneralRe: Multithreading question Pin
ForNow8-Jan-17 22:56
ForNow8-Jan-17 22:56 
GeneralRe: Multithreading question Pin
Munchies_Matt23-Jan-17 6:32
Munchies_Matt23-Jan-17 6:32 
QuestionMFC ribbon designer (gallery button) Pin
Maximilien6-Jan-17 9:43
Maximilien6-Jan-17 9:43 
AnswerRe: MFC ribbon designer (gallery button) Pin
DeeEllEll30-Mar-17 4:55
DeeEllEll30-Mar-17 4:55 
QuestionIs function prototyping dead? Pin
Vaclav_6-Jan-17 5:43
Vaclav_6-Jan-17 5:43 
AnswerRe: Is function prototyping dead? Pin
Richard MacCutchan6-Jan-17 5:49
mveRichard MacCutchan6-Jan-17 5:49 
GeneralRe: Is function prototyping dead? Pin
Vaclav_6-Jan-17 16:19
Vaclav_6-Jan-17 16:19 
GeneralRe: Is function prototyping dead? Pin
Richard MacCutchan6-Jan-17 21:55
mveRichard MacCutchan6-Jan-17 21:55 
AnswerRe: Is function prototyping dead? Pin
Jochen Arndt6-Jan-17 22:17
professionalJochen Arndt6-Jan-17 22:17 
GeneralRe: Is function prototyping dead? Pin
Vaclav_7-Jan-17 4:29
Vaclav_7-Jan-17 4:29 

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.