From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b12bc9a1cc5c6c3 X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: Re: Spawning a subprocess and communicating with it. Date: 1998/10/08 Message-ID: #1/1 X-Deja-AN: 399168676 References: Organization: * JerryWare *, Leiden, Holland Newsgroups: comp.lang.ada Date: 1998-10-08T00:00:00+00:00 List-Id: Condic, Marin D. (condicma@PWFL.COM) wrote: : BTW: I was trying to do essentially the same sort of thing on a WinNT : platform with the Win32ada bindings without much success. In attempting to : build the client/server version of the "Hello World" application, I wrote : the following code, which no matter how I changed around the parameters, : didn't seem to want to fire up a separate process. Everything I've been able : to gather about the CreateProcess call indicates that when this program is : run in an MS-DOS command prompt window (on WinNT) it should create another : window in which will execute the "Server_01" application. But the : CreateProcess call keeps failing and I have no clue as to why. Any guesses? Yes. NT doesn't fork. CreateProcess needs a separate executable to be able to create another process. If you want to run both the client and the server from the same executable, you need to run them as threads within your main process. Jerry. -- -- Jerry van Dijk | email: jdijk@acm.org -- Leiden, Holland | member Team-Ada -- Ada & Win32: http://stad.dsl.nl/~jvandyk