Java application doesn't get back the exit code of 16bit spawned process.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.2.0
    • Affects Version/s: 1.1.4
    • Component/s: hotspot
    • 1.2beta4
    • x86
    • windows_nt
    • Not verified



      Name: rm29839 Date: 11/17/97


      I am spawning a 16bit application from my
      Java application.
      -------------------------------------------
      Java app code
        ExecString = nativApp.exe
        Runtime r = Runtime.getRuntime();
        Process process = r.exec(ExecString);
        returnCode = process.waitFor();
      -------------------------------------------
      Native Win16 or Win32 code
      --- nativApp.c ---
      int main(argc, char**argv)
      {
        return 5;
      }
      -------------------------------------------
      The 16bit app want to return exit code (integer)
      And it does.
      But the java code doesn't get the value.
      So the value of 'returnCode' is always 0,
      no matter what the 16bit app returns.

      If the spawned application from Java is
      32bit app then I get back the return value.
      I have observed this in WindowsNT.
      On Windows95 it works fine for both
      16bit and 32bit applications.
      -------------------------------------------
      I am sending this report again.
      I got reply from
      Ronan Mandel [###@###.###
      to the report i filed for this bug
      [ on 1997-10-14 16:27:00.0
      Original bug report ID = 18773 ]
      saying the info i submitted was insufficient.

      So I modified the report little this time and
      sending it again.
      I do not know what more to write in report.
      Thanks.
      (Review ID: 19781)
      ======================================================================

            Assignee:
            Hong Zhang
            Reporter:
            Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: