Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 11:39
wjeanveau9-Jun-08 11:39 
AnswerRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 12:29
professionalJoe Woodbury9-Jun-08 12:29 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 12:43
wjeanveau9-Jun-08 12:43 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 12:59
professionalJoe Woodbury9-Jun-08 12:59 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 13:10
wjeanveau9-Jun-08 13:10 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 13:17
professionalJoe Woodbury9-Jun-08 13:17 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 13:23
wjeanveau9-Jun-08 13:23 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 13:42
professionalJoe Woodbury9-Jun-08 13:42 
Compiled and ran it. The way you've nested loops, particularly if(i == progList.size()-1), made the program not do what it looks like it's supposed to do, but the [single] wait did work for me. You should be using vecHandles since what matters is the number of actual handles you actually have.

It also appears that you'd be leaking a myThreads pointer after you finish with the first wait and if you allocate memory for the second.


Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke


GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 14:36
wjeanveau9-Jun-08 14:36 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 15:31
professionalJoe Woodbury9-Jun-08 15:31 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 17:10
wjeanveau9-Jun-08 17:10 
Questionreading bits from file Pin
botnet9-Jun-08 11:06
botnet9-Jun-08 11:06 
AnswerRe: reading bits from file Pin
Jijo.Raj9-Jun-08 18:38
Jijo.Raj9-Jun-08 18:38 
GeneralRe: reading bits from file Pin
achainard10-Jun-08 2:45
achainard10-Jun-08 2:45 
GeneralRe: reading bits from file Pin
botnet10-Jun-08 13:09
botnet10-Jun-08 13:09 
AnswerRe: reading bits from file Pin
krmed10-Jun-08 6:08
krmed10-Jun-08 6:08 
QuestionBlank printout to printer Pin
Joe Smith IX9-Jun-08 7:04
Joe Smith IX9-Jun-08 7:04 
AnswerRe: Blank printout to printer [modified] Pin
Nelek9-Jun-08 8:12
protectorNelek9-Jun-08 8:12 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 8:33
Joe Smith IX9-Jun-08 8:33 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 8:59
protectorNelek9-Jun-08 8:59 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 9:22
Joe Smith IX9-Jun-08 9:22 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 9:34
protectorNelek9-Jun-08 9:34 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 9:53
Joe Smith IX9-Jun-08 9:53 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 10:02
protectorNelek9-Jun-08 10:02 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 10:18
Joe Smith IX9-Jun-08 10: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.