In addition to other responses, here is some useful guidelines on using Runtime.exec()

Also, this is useful:

and this:

On Oct 23, 2006, at 6:03 AM, Frank Stock wrote:

Hi,

I have to do crop images with Cocoa, so I wrote a JNI-framework to solve that, but it seems that Core Image doesn't clean up very well. So I use a terminal command now. The problem is, when my command line-routine is crashing  (I know that it shouldn't, but if it does..) WO is hanging.
I use the following routine:

try{
    Process runningApp = Runtime.getRuntime().exec("... to my routine....");
  ...
    runningApp.waitFor();  // If the command line routine is crashing, WO is freezing here
   ...
   
}
catch(IOException e) {
            NSLog.err.appendln("Didn't start up!");
    throw e;
}

Any idea or a better way to solve my problem?

Thanks,
Frank Stock
NNS produtions
Belgium
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to