0 Replies Latest reply on Jun 28, 2010 6:51 AM by ChefRamsey

    Can't Find Running NativeProcess

    ChefRamsey

      Hi,

       

      When I debug the following code in Flash Builder 4, it appears the process is running but I can't find it in the Windows Task Manager. Does it run under a different name or something?

       

      var exePath:String = "E:/test/myProcess.exe";

       

      var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();

       

      var file:File = new File(exePath);

       

      nativeProcessStartupInfo.executable = file;  //No error here

       

      var processArgs:Vector.<String> = new Vector.<String>();

      processArgs.push(

      "-n");

      processArgs.push(

      "2");

      processArgs.push(

      "in.txt");

      processArgs.push(

      "out.txt");

       

      nativeProcessStartupInfo.arguments = processArgs;

       

      process = new NativeProcess();

      process.start(nativeProcessStartupInfo);

       

       

      if(process.running)  //Breakpoint here; resolves as true.  Does OS see as a new running process with PID?

      {

          

      }

       

      Thanks