Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
thanks
The Visual Studio Thread windows I know has the ability to freeze threads

Regardless I'll download the extension

Let me explain the nature of the problem

I'll writing an a debugger for another platform (working with an emulator )

I am modifying the emulated "C" code

the way interrupt the "debugged" code/program

is by overlaying the instruction which gives me control and shows the user the code

I quickly put back the over laid instruction

this works well when the user is debugging a Single Threaded program

however in a multiThreaded programs other threads or tasks executing the same code

get a operation exception before I put the code back

The way I coded this was as soon as I overlay the instruction I do a

ResetEvent which cause a Event to be non-signaled and stop the other threads/tasks

from executing this code until I have a chance

to put back the instruction I then do a SetEvent

to let the other threads/tasks execute the code

Something is obviously not working out right in this timing

In Visual Studio I can observe how QUICKLY The Windows dispatcher

Switches from thread to thread

Thanks for your help
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 
GeneralRe: Is function prototyping dead? Pin
Jochen Arndt8-Jan-17 20:58
professionalJochen Arndt8-Jan-17 20:58 
AnswerRe: Is function prototyping dead? Pin
Jochen Arndt6-Jan-17 6:49
professionalJochen Arndt6-Jan-17 6:49 
QuestionMulti Core question Pin
ForNow4-Jan-17 4:11
ForNow4-Jan-17 4:11 
AnswerRe: Multi Core question Pin
Jochen Arndt4-Jan-17 4:39
professionalJochen Arndt4-Jan-17 4:39 
GeneralRe: Multi Core question Pin
ForNow4-Jan-17 4:50
ForNow4-Jan-17 4:50 
GeneralRe: Multi Core question Pin
Jochen Arndt4-Jan-17 5:01
professionalJochen Arndt4-Jan-17 5:01 
GeneralRe: Multi Core question Pin
ForNow4-Jan-17 5:06
ForNow4-Jan-17 5:06 
GeneralCreate a program Pin
Yudha Eka Saputra3-Jan-17 18:01
Yudha Eka Saputra3-Jan-17 18:01 

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.