Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow9-May-21 13:32
ForNow9-May-21 13:32 
QuestionRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
David Crow9-May-21 16:15
David Crow9-May-21 16:15 
AnswerRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow9-May-21 16:21
ForNow9-May-21 16:21 
AnswerRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov9-May-21 20:30
Victor Nijegorodov9-May-21 20:30 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 2:20
ForNow10-May-21 2:20 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov10-May-21 3:32
Victor Nijegorodov10-May-21 3:32 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 3:57
ForNow10-May-21 3:57 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov10-May-21 4:06
Victor Nijegorodov10-May-21 4:06 
ForNow wrote:
don’t think the wait should be in the main thread


If you would implement the Wait... in the main thread then you could wait forever and your main thread could be frozen forever.

BTW, how do you create/obtain the event HANDLEs that you pass in the WaitForMultipleObjects? Are they all correct?

modified 10-May-21 10:37am.

GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 4:25
ForNow10-May-21 4:25 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov10-May-21 4:39
Victor Nijegorodov10-May-21 4:39 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 4:51
ForNow10-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
ForNow12-May-21 1:36 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov12-May-21 2:00
Victor Nijegorodov12-May-21 2:00 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow12-May-21 2:30
ForNow12-May-21 2:30 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov12-May-21 2:37
Victor Nijegorodov12-May-21 2:37 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow12-May-21 2:47
ForNow12-May-21 2:47 
QuestionC, Pin
Ajay Kumar May20214-May-21 20:49
Ajay Kumar May20214-May-21 20:49 
AnswerRe: C, Pin
Richard MacCutchan4-May-21 21:23
mveRichard MacCutchan4-May-21 21:23 
AnswerRe: C, Pin
Gerry Schmitz5-May-21 8:29
mveGerry Schmitz5-May-21 8:29 
QuestionC2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
Saikat_EPAM28-Apr-21 22:25
Saikat_EPAM28-Apr-21 22:25 
AnswerRe: C2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
Richard MacCutchan28-Apr-21 23:12
mveRichard MacCutchan28-Apr-21 23:12 
GeneralRe: C2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
CPallini29-Apr-21 0:20
mveCPallini29-Apr-21 0:20 
GeneralRe: C2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
Victor Nijegorodov29-Apr-21 1:51
Victor Nijegorodov29-Apr-21 1:51 
AnswerRe: C2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
Richard MacCutchan29-Apr-21 2:18
mveRichard MacCutchan29-Apr-21 2:18 

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.