Search
DiagramView.CatchGdiPlusExceptions Property
See Also
 





Catches GDI+ exceptions thrown while drawing dashed lines with anti-aliasing.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms

 Syntax

C#  Copy Code

public bool CatchGdiPlusExceptions { get; set; }

Visual Basic  Copy Code

Public Property CatchGdiPlusExceptions As Boolean

 Property Value

true to catch GDI+ OutOfMemoryException, otherwise false. The default value is true.

 Remarks

GDI+ throws occasional OutOfMemoryException exceptions when drawing curved lines with dashed pens and anti-aliasing is enabled. We haven't observed actual memory spikes and our believe is that the .NET wrapper Graphics class interprets incorrectly an error code returned by the native GDI+ libraries. When this property is enabled, the component catches and ignores the exceptions.

 See Also