Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Crashes with error HRESULT: 0x88980406 (at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()) when BitmapCache is enabled.

$
0
0

We've WPF test application which creates 6k content controls and draw a rectangle inside of each.

App was created to simulate SyncFlush() error which is occurring in our real application.

Error is thrown only when BitmapCache is enabled for each content control.Without BitmapCache application works well. Exception is thrown each time we try to maximize window. Application was tested on different hardware platforms and different .Net versions (4.0, 4.5.1).

2014-06-09 16:17:35: 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.UpdateWindowPos(IntPtr lParam)
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wPar

Is it a bug in WPF? I understand that app generates heavy load (6k controls) but memory (private bytes) is not a problem.

Thanks in advance

Michal






Viewing all articles
Browse latest Browse all 18858

Trending Articles