Re: Using the Windows threads and processes functions
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 16, 2004
- 635 views
On Wed, 14 Jul 2004 07:34:45 -0700, Jonas Temple <guest at RapidEuphoria.com> wrote: >All, > >Back in my Borland C++/OWL days I wrote a program that started up a process >and would wait until the process completed before the "parent" program >would continue. I know this question has come up before about using >shellExecute() to start a process and wait until it completes before >continuing (which you can't do). I have just submitted a short routine originally by Juergen Luethje which may be of interest, maybe not. It loops, sleeping for 1/25th of a second, waiting for the child process to complete, and invokes doEvents() if win32lib is in use (but does NOT require win32lib to be present). It has proved handy for me, though one limitation I know is you cannot redirect output: http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html#syswait (nothing specifically to do with "threads", btw) Regards, Pete