Click here to Skip to main content
14,922,948 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to migrate qt creator project (that doesn't need qt) to visual studio Pin
PristoMiky12-May-21 2:50
MemberPristoMiky12-May-21 2:50 
AnswerRe: How to migrate qt creator project (that doesn't need qt) to visual studio Pin
_Flaviu12-May-21 23:03
Member_Flaviu12-May-21 23:03 
GeneralRe: How to migrate qt creator project (that doesn't need qt) to visual studio Pin
Maximilien13-May-21 7:08
MemberMaximilien13-May-21 7:08 
AnswerRe: How to migrate qt creator project (that doesn't need qt) to visual studio Pin
Richard MacCutchan13-May-21 0:11
mveRichard MacCutchan13-May-21 0:11 
QuestionQuestion Arduino programming + joystick + bulbs Pin
titi titi11-May-21 12:55
Membertiti titi11-May-21 12:55 
AnswerRe: Question Arduino programming + joystick + bulbs Pin
CPallini11-May-21 20:23
mveCPallini11-May-21 20:23 
AnswerRe: Question Arduino programming + joystick + bulbs Pin
Richard MacCutchan11-May-21 21:47
mveRichard MacCutchan11-May-21 21:47 
QuestionWaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow9-May-21 13:32
MemberForNow9-May-21 13:32 
Hi
In the process of re-writing my CAsyncSocket to the more controllable WSA flavor I got stuck on WaitForMultipleObjects.

For Each Event on the socket that I do a bind by that I mean FD_READ, FD_WRITE I CreateEvent I associate the events with WSAEventSelect.

I pass all the info (HWND windows message etc when I want notification to be sent in a structure) pointed to by a LPVOID the parameter in The CreateThread

I let the worker thread wait on the events and do the appropriate SendMessage

Problems is I am abending or rather getting an Access violation on WaitForMultipleobjects

Running under the visual studio debugger I can see the values of the 5 events are correct

The first thing i thought of was that my worker thread didnt have security rights to the events I created in the Mother thread ( all threads are in the same process)

I just figured the quickest way to resolve this was to name the events and do a OpenEvent If I get a null from any events I would have a problem

All of the events named from OpenEvent return a value however they are not the same event values that I created

Real mystery to me

Hope some one can help

Thanks
QuestionRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
David Crow9-May-21 16:15
MemberDavid Crow9-May-21 16:15 
AnswerRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow9-May-21 16:21
MemberForNow9-May-21 16:21 
AnswerRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov9-May-21 20:30
MemberVictor Nijegorodov9-May-21 20:30 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 2:20
MemberForNow10-May-21 2:20 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov10-May-21 3:32
MemberVictor Nijegorodov10-May-21 3:32 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 3:57
MemberForNow10-May-21 3:57 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov10-May-21 4:06
MemberVictor Nijegorodov10-May-21 4:06 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 4:25
MemberForNow10-May-21 4:25 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov10-May-21 4:39
MemberVictor Nijegorodov10-May-21 4:39 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 4:51
MemberForNow10-May-21 4:51 
AnswerRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Randor 11-May-21 12:30
professional Randor 11-May-21 12:30 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow12-May-21 1:36
MemberForNow12-May-21 1:36 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov12-May-21 2:00
MemberVictor Nijegorodov12-May-21 2:00 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow12-May-21 2:30
MemberForNow12-May-21 2:30 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov12-May-21 2:37
MemberVictor Nijegorodov12-May-21 2:37 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow12-May-21 2:47
MemberForNow12-May-21 2:47 
QuestionC, Pin
Ajay Kumar May20214-May-21 20:49
MemberAjay Kumar May20214-May-21 20:49 

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.