JC Coez wrote:
I used "spawn" (from task.ijs) and I understand now that the chess engine is always requiring some data and loops with a reply such as 'invalid command,try...' until the variable which receives the data is 32meg. and J hangs... I don't know how to modify the ReadAll so that the loop would not occur and the process would only wait until new data colud be sent to the engine. Is that possible ?

Assuming the chess engine has unbuffered stdin/stdout, you may tried use win32 api to obtain the handle of stdin/stdout and set them unbuffered. And then use these handles for i/o instead of J 1!:xxx conjunctions.

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to