So I'm using RunCommand on a separate process created by the main one. I choosed it cause I saw no need to run the command its invocating asychronously again (RunCommand runs the specified command sychronously), as the process wich runs RunCommand is already asynchronous.
But I'm getting allways -1 as the return values ?! Ok I admit it that I only tried whith Digicam (on Aminet ) and then with the dir command just to be sure it wansn't a Digicam problem. But even dir returned -1. The docs say that a -1 return values means the stack couldn't be allocated. Later on the includes it's mentioned that -1 means a failure.
BUT:
- dir runs fine, as I can see the output but still returns -1. Then my program enters a loop of timed retries, all having the same result. Heck I though dir as it's an OS command (probably resident) would work ?
- digicam runs well 1st time but when entering mentioned loop it crashes badly.
I assume the crash is not my programs fault and maybe digicam's ? or whatever really :-?
I'm using LoadSeg to get the BPTR that RunCommand accepts, I suppose the pointer is still valid after using RunCommand or do I have to UnLoadSeg and LoadSeg again...:-x, Nah I don't think so...
BTW, just FYI this separate process is supposed to handle the buffer to get picture frames and also supports VHI (in the works) and any command line program the user specifies, for flexbility (hence why I'm testing it with Digicam).
Any ideas appreciated as allways.. (forgot the source at home...) ... :-?
8-)