[Lazarus] How to use RunCommandIndir() in a thread?

Bo Berglund bo.berglund at gmail.com
Mon Apr 15 15:14:23 CEST 2019


On Mon, 15 Apr 2019 14:49:49 +0200, Bo Berglund via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>    PlayProc.execute; // <== Will this really return before done?

Just checked and it will unless the poWaitOnExit option is speciufied.
One can use a call to Running in the loop toi check if it is still
active.

So I guess if I adapt my code to use a TProcess object instead of the
RunCommandInDir() call I could run it in a thread?


-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list