BinaryFormatter outofmemory exception deserialization

I have a serializable class that I serialize using binary formatting, send over the network (TCPListener, TCPClient), and then run deserialization. Every time I get deserialized, I get an outofmemory exception. Does anyone know why this might happen?

(The class I'm posting is very small)

Thank,

PM

EDIT: My class is a linked list of one of my other classes and some methods. I made Serializable.

+1
source share
2 answers

Does the class have a serialization constructor (one that accepts SerializationInfoand parameters StreamingContext)? If so, could there be an error in the serialization constructor?

(, .)

0

/ .

. , , .

0

All Articles