mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 22:19:17 +02:00
IDE: fixed run project without debugger, issue #35186
git-svn-id: trunk@60581 -
This commit is contained in:
parent
41a3fb6d01
commit
0f8bf86903
@ -7231,6 +7231,7 @@ begin
|
||||
ExeFile:=Params[0];
|
||||
Params.Delete(0);
|
||||
end;
|
||||
//writeln('TMainIDE.DoRunProjectWithoutDebug ExeFile=',ExeFile);
|
||||
Process.Executable := ExeFile;
|
||||
ARunMode := Project1.RunParameterOptions.GetActiveMode;
|
||||
|
||||
@ -7278,6 +7279,7 @@ begin
|
||||
Project1.RunParameterOptions.AssignEnvironmentTo(Process.Environment);
|
||||
try
|
||||
TNotifyProcessEnd.Create(Process, @DoCallRunFinishedHandler);
|
||||
Process:=nil; // Process is freed by TNotifyProcessEnd
|
||||
except
|
||||
on E: Exception do
|
||||
debugln(['Error: (lazarus) [TMainIDE.DoRunProjectWithoutDebug] ',E.Message]);
|
||||
|
Loading…
Reference in New Issue
Block a user