Hello [EMAIL PROTECTED]!

On 30-Apr-00, you wrote:

[problem with READ-IO]
 j> ok, I think I've figured it out...

Great! Thank you. :-)

 j> So trying to read-io a length that is a multiple of 16 (the
 j> same problem happens when sending 32 bytes) causes read-io to
 j> miss the last character. A temporary fix is to change line 20
 j> in netmsg.r to

 j> data: make string! (total-len + 1)

Hmm... this was one of my ipothesis (the allocated space for the
string was not enough), since if your string is "full" READ-IO
will not automatically expand it, but simply returns 0 and reads
nothing. So it's likely that the string get allocated in multiples
of 16 bytes, and READ-IO is considering (allocated_bytes - 1)
instead of allocated_bytes as the upper limit for the string.

Jim? Holger? Is this the reason?

Regards,
    Gabriele.
-- 
Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

Reply via email to