Sign in Join

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

Mailing lists / lazarus / 2010-09

TProcess still keeping debugged application open.

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Frank Church

When I am debugging an application in Lazarus and use the app to launch an external application with TProcess, after I stop the app to recompile, the exe cannot be saved, and I have now realized that it is because of the launched app still running in the background.

Is this issue due to the debugger or is it related to the way TProcess works?

This is the sample code:

 AProcess := TProcess.Create(self);
  AProcess.CommandLine := fullCommStr;
  AProcess.ShowWindow := swoHide;
  AProcess.Execute;
  AProcess.Free;

The application is meant to run in the background.

,

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100908/7a3b39ab/attachment.html>

Reply by email