[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote:
>> A while ago I posted a script with functions to message back and forth
>> between two rebol scripts, but which didn't work reliably for some
>> reason. I don't know why it didn't work, but Bo sent me an example script
>> which I used to fix my problem. Since there was some interest I'll post
>> this one.
[..]
> I've modified this so that it sends along the length of the data being
> sent, so instead of looking for endofchar, it can use read-io directly
> which is mucho faster :) Only the transmit & receive functions are
> changed, with the most damage being done in receive.
Your improvement survived my first test, and it's indeed much faster. But
now I noticed it does not work reliably unfortunately. :(
I managed to make it fail now, it was sending a 16 character long string,
namely
["DE" 2 "AX" 25]
and it only got
["DE" 2 "AX" 25
(15 chars) with the first read-io.
As it should, it then tried to get the last byte. But it never got it, so it
got stuck in an endless loop trying to get this last byte. I do wonder what
the problem is here. Oh well, I guess I'll go back to the working (but
slow) solution. I don't know how to report this problem in a useful way
since I can't reproduce it, it just seems to happen randomly.
--
/Johan R�nnblom, Team Amiga