Tutorial: system.releaseExternalProcess

system.releaseExternalProcess

Removes the process entry for the passed UUID obtained from a prior call of fin.desktop.System.launchExternalProcess().

Example

fin.desktop.System.launchExternalProcess({
    path: "notepad",
    arguments: "",
    listener: function (result) {
        console.log("The exit code", result.exitCode);
    }
}, function (result) {
    console.log("Result UUID is " + result.uuid);

    //release it.
    fin.desktop.System.releaseExternalProcess(result.uuid, function () {
        console.log("Process has been unmapped!");
    }, function (reason) {
        console.log("failure: " + reason);
    });
});