Dataset Serialize Outofmemoryexception

Using BinaryFormatter. Rob Zombie Greatest Hits Rar Download. Serialize() to serialize large DataSet. Sep 11, 2014 Using BinaryFormatter.Serialize() to serialize large DataSet.

Serialize Data

When you have to pass an object back and forth between processes or application domains you have to serialize it into some type of stream that can be understood by both the client and the server. The more complex and big the object gets the more expensive it is to serialize, both CPU wise and memory wise, and if the object is big and complex enough you can easily run into out of memory exceptions during the actual serialization process. And that is exactly what happened to one of my customers. They had to pass very large datasets back and forth between the UI layer and the datalayer and these datasets could easily get up to a couple of hundred MB in size. When they passed the datasets back they would get OutOfMemory Exceptions in stacks like this one. In other words they would get OOMs while serializing the dataset passing it back to the client.