Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-04

Creating TProcess from within a TThread

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Richard Mace
Show quoted text 6 lines
Hi, I am currently working on a project that will need to use multiple threads which will each need to create their own TProcess. Is this possible as when I attempt it at the moment, tprocess requires a tcomponent when created?
You can pass nil:
aProcess:=TProcess.Create(nil);

Mattias

Reply by email

Richard Mace
to Mattias Gaertner: On Tue, 28 Apr 2015 13:10:33 +0100 You can pass nil: aProcess:=TProcess.Create(nil);…

Thanks Mattias,
I should have guessed that
Richard

"Mattias Gaertner" wrote 22 lines
On Tue, 28 Apr 2015 13:10:33 +0100 Richard Mace wrote: > Hi, > I am currently working on a project that will need to use multiple threads > which will each need to create their own TProcess. > > Is this possible as when I attempt it at the moment, tprocess requires a > tcomponent when created? You can pass nil: aProcess:=TProcess.Create(nil); Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150428/6a8e2719/attachment.html>

Reply by email