sharedCanvasClient and sharedCanvasServer problem
in
Core Library Questions
•
2 years ago
In processing examples > libraries > network there is,
sharedCanvasClient and,
sharedCanvasServer
Sometimes i get an array out of bounds exeption, i tested with a println and i figured out that sometimes it sends not the complete String.
If if send the string "test" for example then it receives sometimes just "te".
Why does this occur?
I know i can solve by checking the length of the input but if someone can explain why this happens then that would be nice.
sharedCanvasClient and,
sharedCanvasServer
Sometimes i get an array out of bounds exeption, i tested with a println and i figured out that sometimes it sends not the complete String.
If if send the string "test" for example then it receives sometimes just "te".
Why does this occur?
I know i can solve by checking the length of the input but if someone can explain why this happens then that would be nice.
1