Skip to main content
Participant
Mar 20, 2017 9:36 AM UTC
Question

NativeProcess.exit() problem

AIR 24, Windows 7

Hello,

I am invoking some system application processes like MSPaint or Notepad through nativeProcess.start(nativeProcessStartupInfo). Works OK until I want to kill that process through nativeProcess.exit(false). The problem is that the process is killed without any prompt to save changes on opened document (image in mspaint or txt in notepad) (Looks like AIR is killing the process directly and doesn't send end signal to that process). The cmd taskkill (taskkill /IM mspaint.exe) works correctly.

var nativeProcessStartupInfo: NativeProcessStartupInfo = new NativeProcessStartupInfo();

nativeProcessStartupInfo.arguments = new <String>[File.applicationDirectory.nativePath + "\\" + filenameImg];

nativeProcessStartupInfo.executable = File.applicationDirectory.resolvePath("c:\\Windows\\System32\\mspaint.exe");

var nativeProcess: NativeProcess = new NativeProcess();

nativeProcess.start(nativeProcessStartupInfo);

Is that a bug or I miss something?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Adobe Employee
Mar 28, 2017 6:23 AM UTC

Hi,

Can you please report this issue on tracker.adobe.com and post a reference to that here ?

Best,

Rakshit (Adobe AIR Team)

Translate
tluczynsAuthor
Participant
Mar 29, 2017 7:39 AM UTC

Added :  Tracker

greetings

Tomasz Łuczyński

Translate
Adobe Employee
Mar 24, 2017 9:17 AM UTC

Thanks for reporting an issue. We are looking into it.

Regards

Rakshit (Adobe AIR Team)

Translate