D
Dan
I seem to find serilisation strangely difficult, i do the following:
Create a memory stream
Create a binary formatter
Read my object into the memorystream by using the binaryformatter serialise
method
then i send the memorystream.getbuffer over the socket.
At the client side receiving that info:
i create a memory stream
create a binary formatter
write my received bytes into the memory stream
deserialise the memorystream using binaryformatter.deserialise to an object
.....at this deserialisation point it all breaks, so it seems to serialise
with no problems.
In order to test why this was i, in the same method, serialised an object
then immediately deserialised it and still had an error which i woul dhave
thought eliminates the issue of incomplete data over a socket.
Really stuck on this one, i have read tuts on the net all of which match my
code, what am i doing wrong?
Create a memory stream
Create a binary formatter
Read my object into the memorystream by using the binaryformatter serialise
method
then i send the memorystream.getbuffer over the socket.
At the client side receiving that info:
i create a memory stream
create a binary formatter
write my received bytes into the memory stream
deserialise the memorystream using binaryformatter.deserialise to an object
.....at this deserialisation point it all breaks, so it seems to serialise
with no problems.
In order to test why this was i, in the same method, serialised an object
then immediately deserialised it and still had an error which i woul dhave
thought eliminates the issue of incomplete data over a socket.
Really stuck on this one, i have read tuts on the net all of which match my
code, what am i doing wrong?