Re: Memory Leak (Bitmap)Image.FromStream(memory_stream)

Robert Jordan <[email protected]>
Newsgroups gmane.comp.gnome.mono.devel
Message-ID <[email protected]>
On 23.03.2017 21:51, rgclickit wrote:
> I believe I discovered a memory leak when creating Bitmaps from the
> Image.FromStream call. The basic code to reproduce the problem is:
>
> using (System.IO.MemoryStream ms = new System.IO.MemoryStream(_sourceArray))
> {
>      using (Bitmap srcBitmap = (Bitmap)Image.FromStream(ms)) {
>      }
> }
>

I cannot reproduce this. The odds are that you're not computing
the memory usage correctly.

See 
http://www.mono-project.com/docs/advanced/performance-tips/#understanding-memory-usage

Robert


_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.dot.net/mailman/listinfo/mono-devel-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.