WPF and Windows 10 crash WPF and Windows 10 crash windows windows

WPF and Windows 10 crash


Seems this is known WPF bug: https://github.com/dotnet/wpf/issues/439No solution yet on June 3, 2020.


System.OutOfMemoryException or System.Runtime.InteropServices.COMException in System.Windows.Media.Composition.DUCE.Channel.SyncFlush() are usually caused by GDI objects or User objects leaks.

You can monitor these leaks in Task Manager. Select "GDI objects" or "User objects" columns for this. If GDI objects count exceeds limit (10000 is default for windows) you get OutOfMemory exception in your application.

Check your application for leak of System.Drawing namespace object references, icon handles that you forgot to destroy, etc...

For more information seehttps://blogs.msdn.microsoft.com/dsui_team/2013/11/18/wpf-render-thread-failures/