WPF Render Thread Failures

A common problem developers face with WPF applications is how to deal with exceptions related to render thread failures. You might get reports from users indicating their application throws an exception like one of the following. System.Runtime.InteropServices.COMException: UCEERR_RENDERTHREADFAILURE (Exception from HRESULT: 0x88980406)   at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()   at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)   at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget)   at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)  …

6