Hi!
I was playing around with the docking manager and managed to crash it in my application and in the MDI Demo sample.
Here is how I did it in the sample:
I run the MDI Demo sample
Enlarge it a bit
Take the bottom panel off its docked position
Move that bottom panel around pretty wildly around the application (and probably outside the application too).
The drawing seems to not be able to catch up with the movement, as it leaves a lot of "traces" behind. After a while, the app will crash.
Here is the information from .NET:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
at System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
at Syncfusion.Windows.Forms.Tools.Renderers.RendererPrimitives.PaintGripper(Graphics g, Orientation orientation, Point location, Brush foreBrush, Brush backBrush, Int32 dotCount)
at Syncfusion.Windows.Forms.Tools.Renderers.RendererOffice2003.PaintGripper(Graphics g)
at Syncfusion.Windows.Forms.Tools.Renderers.RendererOffice2003.PaintCaption(Graphics g, PaintDockControlArgs args)
at Syncfusion.Windows.Forms.Tools.Renderers.RendererOffice2003.PaintDockedControl(Graphics g, Rectangle rectangle, PaintDockControlArgs args)
at Syncfusion.Windows.Forms.Tools.Renderers.DockingManagerRenderer.PaintDockedControl(Graphics g, Rectangle rectangle, PaintDockControlArgs args)
at Syncfusion.Windows.Forms.Tools.FloatingForm.PaintNCArea()
at Syncfusion.Windows.Forms.Tools.FloatingForm.WndProc(Message& msg)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
MDIDemo
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Program%20Files/Syncfusion/Essential%20Studio/4.1.0.62/windows/Tools.Windows/Samples/Docking%20Package/MDIDemo/cs/bin/release/MDIDemo.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Syncfusion.Shared.Base
Assembly Version: 4.101.0.62
Win32 Version: 4.101.0.62
CodeBase: file:///c:/windows/assembly/gac/syncfusion.shared.base/4.101.0.62__3d67ed1f87d44c89/syncfusion.shared.base.dll
----------------------------------------
Syncfusion.Core
Assembly Version: 4.101.0.62
Win32 Version: 4.101.0.62
CodeBase: file:///c:/windows/assembly/gac/syncfusion.core/4.101.0.62__632609b4d040f6b4/syncfusion.core.dll
----------------------------------------
System.Runtime.Serialization.Formatters.Soap
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.runtime.serialization.formatters.soap/1.0.5000.0__b03f5f7f11d50a3a/system.runtime.serialization.formatters.soap.dll
----------------------------------------
Syncfusion.Tools.Windows
Assembly Version: 4.101.0.62
Win32 Version: 4.101.0.62
CodeBase: file:///c:/windows/assembly/gac/syncfusion.tools.windows/4.101.0.62__3d67ed1f87d44c89/syncfusion.tools.windows.dll
----------------------------------------
Syncfusion.Grid.Windows
Assembly Version: 4.101.0.62
Win32 Version: 4.101.0.62
CodeBase: file:///c:/windows/assembly/gac/syncfusion.grid.windows/4.101.0.62__3d67ed1f87d44c89/syncfusion.grid.windows.dll
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
Syncfusion Docking Manager Crash 031706.zip