Search code examples
.netwpfmemory-leaksmemory-profilingresource-loading

What causes UnmanagedMemoryStream in WPF (Memory Leak)?


Profiling my .NET Application shows me that there is a big delta in UnmangedMemoryStreams.

It seems they are created from some resource loading.

Anyone has an idea what can cause this loading or how to debug this?

Screenshots from Profiling:

http://imgur.com/a/eO76W

http://imgur.com/a/eO76W


Solution

  • Like said in the comments, FontFamily is causing the leak. More details: WPF TextBlock memory leak when using Font