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.
The fix:
Application.xaml.cs
class MyApp1 : Application { // ... public Application() { new HwndSource(new HwndSourceParameters()); } // ... }