|
-
Jul 13th, 2002, 03:12 PM
#1
Thread Starter
New Member
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]
-
Jul 14th, 2002, 09:12 PM
#2
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.
-
Jul 15th, 2002, 09:45 PM
#3
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|