Reply To: Copy Paste

When doing a copy/paste on a class object that has existing compensations/aggregations, following error pops up when trying to move the new copy of the class:

System.NullReferenceException: Object reference not set to an instance of an object.

at SoftwareIdeasModeler.Core.Projecting.AbstractDiagramItem.get_Style()

at SoftwareIdeasModeler.Core.Projecting.ConcreteDiagramItem.get_Style()

at SoftwareIdeasModeler.Core.Projecting.ConcreteDiagramItem.GetBaseOutlineBounds()

at SoftwareIdeasModeler.Core.Projecting.ConcreteDiagramItem.get_OutlineBounds()

at SoftwareIdeasModeler.SimDiagramControl.InvalidateSelected()

at SoftwareIdeasModeler.SimDiagramControl.SimDiagramControl_MouseDown(Object sender, MouseEventArgs e)

at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)

at System.Windows.Forms.UserControl.OnMouseDown(MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

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

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

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

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

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)

The only way to continue working is to exit and restart the application. After that, the new object can be moved again.

JS 23 December 2010 12:02:22

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]