Skip to main content
Participant
March 20, 2017
Question

NativeProcess.exit() problem

  • March 20, 2017
  • 2 replies
  • 532 views

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 has been closed for replies.

2 replies

Adobe Employee
March 28, 2017

Hi,

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

Best,

Rakshit (Adobe AIR Team)

tluczynsAuthor
Participant
March 29, 2017

Added Tracker

greetings

Tomasz Łuczyński

Adobe Employee
March 24, 2017

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

Regards

Rakshit (Adobe AIR Team)