1) I have this code for the creation of useExe oject and program launch:
Code: Select all
...
CommandLine = "C:\\Users\\Owner\\AppData\\Local\\Logseq\\logseq.exe",
RunObj = useExe::new(CommandLine),
RunObj:run(),
retractAll(logseRunObj(_)),
assert(logseRunObj(RunObj)),
2) Now if I terminate the external program using the program's usual exit, is there some state of the useExe obect I can use to detect that termination?
example of failing; this does not work:
Code: Select all
onPushButton1Click(_Source) = button::defaultAction :-
logseRunObj(Obj),
Obj:isActive(),
stdio::write("\nYes"),
!.
onPushButton1Click(_Source) = button::defaultAction :-
stdio::write("\nNo"),
!.
Dave