[Gambas-user] Nested Socket Write does not work
Benoît Minisini
gambas at ...1...
Fri Mar 6 12:59:04 CET 2009
>
> Sorry, I don't know how gambas works with sockets, but instead I noticed
> something else that perhaps is worth to be investigated. When you write
> on socket, you send something like "[0]text". The length of this example
> string is 7 characters, but your formula gives 8 because you add 4 to
> the length of the original text. Perhaps, this code tries to access past
> the end of the string. In other languages this could lead to an
> exception - don't know what happens in gambas: who knows... may be it
> does strange things...
>
It is not a problem. The real length of the string is used then.
--
Benoît
More information about the User
mailing list