- Alternative fix for
COMException: MILERR_WIN32ERROR
.
There is a bug in .NET WPF that when creating too manyRenderTargetBitmap
, theMILERR_WIN32ERROR
error can happen. This is reported as dotnet/wpf#3067 and there's no effective fix yet. Forcing a GC after eachRenderTargetBitmap
creation seemed to help. - Fixed a bug that the app always starts with 1 second tray icon refresh interval.