Socket : Error reading from stream

BlitzMax Forums/BlitzMax Programming/Socket : Error reading from stream

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

This sometimes means a stream was closed before an operation has completed.

For instance, if you are trying to read an 'int' from a stream and the stream abruptly closes before 4 bytes are read, you will receive this error.

The error occurs in the form of an exception - you will need to put code inside a Try/Catch block to catch such an exception.