Results 1 to 3 of 3

Thread: IO Exception : CreateProcess : error=0

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    2

    IO Exception : CreateProcess : error=0

    I have written a Java program which call a 'C' program. The code is similar to :
    Runtime r = Runtime.getRuntime();
    Process p = r.exec("cprogram.exe");
    int exit_code =p.waitFor();
    This Java program runs successfully sometimes, but most of the times an exeption is generated as :
    IO Exception : CreateProcess : error=0

    I have a 16-bit Turbo C++ compiler (for the C program) , JDK 1.3 on a Windows 98 machine.
    I have even tried : r.exec("command.com /c start cprogram.exe")
    But with same result.

    I need help desperately. Please mail any solution to [email protected]

  2. #2
    VirtuallyVB
    Guest
    My first thought is that you might be running out of memory (not enough RAM to create a new process?), but you said it errors out most of the time.

  3. #3
    New Member
    Join Date
    Jun 2002
    Posts
    8
    its probably because there is another process whgich has the same name. because of this is can't creat another one.

    check your processes for duplicate file names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width