Memory leak in BinaryFormatter?

From: Martin Lessard (Lessard_at_discussions.microsoft.com)
Date: 11/09/04


Date: Tue, 9 Nov 2004 08:38:08 -0800

I try to serialize a dataset with the BinaryFormatter. The size of the
dataset is about 23mb. When i call the serialise method of the
BinaryFormatter, the memory used by my process goes from 51500k to 256736k as
reported by the task manager and there is nothing i can do to reclaim this
memory. Is there a memory leak in this method?



Relevant Pages

  • Re: Write class/struct object to file
    ... application which will persit objects as raw c/c++ struct layout in memory, ... Here are some articles introducing .net binary serialization: ... BinaryFormatter to Serialize/Deserialize the object to/form the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Storing datatable data in hard disk
    ... > Is it possible to store the data in a datatable in the hard disk instead of ... > data) will remain in memory. ... BinaryFormatter bf = new BinaryFormatter; ... There are also possibilities to serialize data to XML/SOAP, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Any size limitation on the BinaryFormatter serialization
    ... BinaryFormatter can take a memory stream or any type of stream. ... > In my application, I'm planning to use BinaryFormatter to serialize a> potentially huge object to file (and, of course, deserialize back to> memory later). ...
    (microsoft.public.dotnet.general)
  • Re: Any size limitation on the BinaryFormatter serialization
    ... BinaryFormatter can take a memory stream or any type of stream. ... > In my application, I'm planning to use BinaryFormatter to serialize a> potentially huge object to file (and, of course, deserialize back to> memory later). ...
    (microsoft.public.dotnet.languages.csharp)