Recent

Author Topic: TProcess - launch external program and exit  (Read 1749 times)

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 451
  • Programming is FUN only when it works :)
    • Cool Technology
TProcess - launch external program and exit
« on: February 05, 2018, 09:24:04 pm »
I want to start an external program and then have Tprocess exit while the external program is still running. Can I do that with TProcess? if Not, how can do this. I did try to do that, but when Tprocess exited right after starting the External program, the external program also terminated at the same time.

Thank you for your help. :)

bylaardt

  • Sr. Member
  • ****
  • Posts: 309
Re: TProcess - launch external program and exit
« Reply #1 on: February 05, 2018, 10:50:18 pm »
maybe you have set poWaitOnExit?
try unset it:
Code: Pascal  [Select][+][-]
  1. Exclude(TProcess(MyProcess).Options,poWaitOnExit);
  2. TProcess(MyProcess).execute;

 

TinyPortal © 2005-2018