Reply To: Template class bug

Unfortunately I found a bug when I try to remove the last template parameter from a class.

The report:

System.OutOfMemoryException: Out of memory.

at System.Drawing.Drawing2D.PathGradientBrush..ctor(GraphicsPath path)

at SoftwareIdeasModeler.Visualisation.DiagramDrawer.Fill3DPath(ItemStyle Style, GraphicsPath path, RectangleF bounds)

at SoftwareIdeasModeler.Visualisation.DiagramDrawer.DrawRectangleBackground(ItemStyle style, RectangleF bounds)

at SoftwareIdeasModeler.Core.DiagramItems.UmlObjects.ConcreteUmlClass.DrawTemplateParameters(DiagramDrawer drawer, DrawingParameters param)

at SoftwareIdeasModeler.Core.DiagramItems.UmlObjects.ConcreteUmlClass.DrawElement(DiagramDrawer drawer, DrawingParameters param)

at SoftwareIdeasModeler.Core.Projecting.ConcreteDiagramItem.Draw(DiagramDrawer drawer, DrawingParameters param)

at SoftwareIdeasModeler.Visualisation.DiagramDrawer.Draw(DiagramLayer layer, ConcreteDiagramItem item)

at SoftwareIdeasModeler.Visualisation.DiagramDrawer.Draw(DiagramLayer layer, Rectangle clipArea)

at SoftwareIdeasModeler.Visualisation.DiagramDrawer.Draw(Diagram diagram, Rectangle drawBounds)

at SoftwareIdeasModeler.SimDiagramControl.SimDiagramControl_Paint(Object sender, PaintEventArgs e)

at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)

at System.Windows.Forms.Control.WmPaint(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Viktor 27 October 2010 16:17:13

New Comment

Comment
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]