On 4/2/07, JC Coez <[EMAIL PROTECTED]> wrote:
It seems to be exactly what happened in my case wth the Arion chess engine.
When you will have some time to solve that please let me know.

Here's three approaches:

[1] Search and see if Microsoft supplies a canned solution to this problem
(either "read everything currently available on the pipe" or "read till
the end of the line").  They ought to.

[2] Make a version of ReadAll which reads one character at a time and
returns its result on finding a newline.

[3] Use overlapped I/O (which means using callbacks, which I think
means that getting normal "call a function and wait for the result" would
require threads.

I can't promise that I'll be spending time on this, but [2] should be easy
to do.  Then again, [1] might be easy, too -- at least for someone who
already has a pretty good idea of where to look.

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to