[Lazarus] How to restart application after crash

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Apr 11 14:14:16 CEST 2008


ik wrote:
> On *nix you can try the execv family. Some of them (I don't remember
> by hart) open a new process without caring on the parent prosess.
> 
> On Windows try ShellExecute or something in that family.
> 


Is there any reason I cannot use TProcess?  So far it seems to work 
(that's if I don't get my application in a never ending restart loop) :-)

I don't really know the 'process' unit, but will browse the source to 
see if I can learn something.

Regards,
   - Graeme -


_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/





More information about the Lazarus mailing list