> You might wish to seperate the process by creating two executables, That's already done.
> and execute a program in the background so you could decide what to > do, like in a daemon way... Yes, the problem is I want to do it in a multiplatform way. In Linux I can set CommandLine := 'httpserver &'; In Win32 I should create a service, *but* I don't have administrative privileges. Correct me if I'm wrong, can I create a Win32 service without admin privileges? Or do you know a better way? --- ik <[EMAIL PROTECTED]> wrote: > "Execute" is blocking, so it will continue to execute itself until you > will stop the execution. > > You might wish to seperate the process by creating two executables, > and execute a program in the background so you could decide what to > do, like in a daemon way... > > Ido > > On 10/23/07, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: > > Hi, I'm trying to start a Win32 process and exit leaving the process > > executing. The test > scenario > > is a CGI calling a simple Http server (the Synapse Http server demo). > > > > The problem is the CGI program doesn't stop (in Firefox's status bar > > there's a "Transfering > data > > from localhost..." message until I click Stop button) until the child > > process is finished. If > I > > refresh the page, the program works as expected. > > > > Any hint on this? > > > > To start the child process I use TProcess as follows: > > > > ... > > lProcess := TProcess.Create(nil); > > try > > lProcess.CommandLine := 'httpserver.exe'; > > lProcess.Options := [poNoConsole]; > > lProcess.Execute; > > finally > > lProcess.Free; > > end; > > ... > > > > > > > > > > Leonardo M. Ramé > > http://leonardorame.blogspot.com > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > _______________________________________________ > > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > > > -- > http://ik.homelinux.org/ > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal