WPF Memory Leak on XP (CMilChannel, HWND)

后端 未结 1 1076
清酒与你
清酒与你 2020-12-14 13:42

My WPF application leaks memory at about 4kb/s. The memory usage in Task Manager climbs constantly until the application crashes with an \"Out of Memory\" exception.

相关标签:
1条回答
  • 2020-12-14 14:01

    The fix:

    Application.xaml.cs

    class MyApp1 : Application
    {
       // ...
    
       public Application()
       {
           new HwndSource(new HwndSourceParameters());
       }
       // ...
    }
    
    0 讨论(0)
提交回复
热议问题