Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
OutOfMemoryException while trying to drag a window
posted

Hi we're experiencing a OutOfMemoryException when a user tries to drag a window to another location. As soon as the drag starts the the docking locators show and the whole window freezes.

It seems to happen when using a terminal services session and remoting onto a box, or using HP RGS and logging in. When using an RDP session and the resolution is quite high e.g. 4096x1050 it's easier to recreate.

We've seen a couple of different possibilities for the exception via google, a possible one from microsoft involving WriteableBitmaps. Is this used in the docking librbary? We have the DockManager using deferred FloatingWindowDragMode.

Thanks, Mark.

Infragistics version: 

12.2.20122.2022

Stack Trace:

System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Media.MediaContext.CompleteRender()
at System.Windows.Interop.HwndTarget.OnResize()
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 wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)