mirror of https://gitlab.com/basile.b/dexed.git
fix, linux version, possible desktop cession crash when a runnable module was implicitly aborted
This commit is contained in:
parent
a262a8296f
commit
ee4980204d
|
@ -990,8 +990,11 @@ begin
|
|||
//
|
||||
fname := fRunProc.Executable;
|
||||
if getprocInputHandler.process = fRunProc then
|
||||
begin
|
||||
getMessageDisplay.message('the execution of a runnable module ' +
|
||||
'has been implicitly aborted', fDoc, amcEdit, amkWarn);
|
||||
getprocInputHandler.addProcess(nil);
|
||||
end;
|
||||
killProcess(fRunProc);
|
||||
if fileExists(fname) then
|
||||
if ExtractFilePath(fname) = GetTempDir(false) then
|
||||
|
|
|
@ -82,7 +82,8 @@ begin
|
|||
// TODO-cfeature: process list, imply that each TCESynMemo must have its own runnable TProcess
|
||||
// currently they share the CEMainForm.fRunProc variable.
|
||||
if fProc <> nil then
|
||||
fProc.Terminate(1);
|
||||
if fProc.Running then
|
||||
fProc.Terminate(0);
|
||||
|
||||
txtExeName.Caption := 'no process';
|
||||
fProc := nil;
|
||||
|
|
Loading…
Reference in New Issue