Skip to main content
GameDev.net gamedev.net
🔒 Locked

win32 processes

Started by Dobbs Jun 13, 2002 at 10:04 AM 1 replies 800+ views
Original Post
Dobbs
Dobbs
I''m using CreateProcess to execute another program, and I want to wait for that program to finish execution before continuing. So after calling CreateProcess I use WaitForSingleObject(blah, INFINITE). This works fine in most cases. The problem I''ve run into is sometimes the program I call executes others in turn but doesn''t wait for them to terminate. Is there some way I can tell Windows to wait for any process recursively spawned to terminate? MSDN and Google haven''t been much help. I hope that''s clear.
Dobbs
Dobbs
Haven''t solved the problem just yet but that helps a lot, thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.