I have got several times the same error and the appliaction SharpDevelop hangs up.
I do not understand why.
I have 1 main form, 2 pictureboxes and about 10 numericUpDown-controls.
I think, the problem is: I wrote some simple code for 2 or 3 numericUpDown-controls. Then I changed in the property-window the name of some controls. In the propertyWindow I see the new name, but the name of the sub in the sourcecode didn't change.
Also, some of the subs are not visible in the soucecode-window. When I try to see the code of the sub by selecting in the pullwown-menu of the subs/functions, these subs are dimmed (not accessible?). Selecting one of the dimmed subs, the system stops with the messages I added below.
SharpDevelop Version : 4.3.3.9663-463ee024
.NET Version : 4.0.30319.34003
OS Version : Microsoft Windows NT 6.2.9200.0
Current culture : German (Germany) (de-DE)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 275956kb
GC Heap Memory : 33310kb
Unhandled exception
Exception thrown:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei System.Windows.Forms.NativeWindow.AddWindowToTable(IntPtr handle, NativeWindow window)
bei System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle, Boolean assignUniqueID)
bei System.Windows.Forms.Design.ControlDesigner.ChildSubClass..ctor(ControlDesigner designer, IntPtr hwnd)
bei System.Windows.Forms.Design.ControlDesigner.HookChildHandles(IntPtr firstChild)
bei System.Windows.Forms.Design.ControlDesigner.HookChildControls(Control firstChild)
bei System.Windows.Forms.Design.ControlDesigner.OnHandleChange()
bei System.Windows.Forms.Design.ControlDesigner.DesignerWindowTarget.OnHandleChange(IntPtr newHandle)
bei System.Windows.Forms.Control.ControlNativeWindow.OnHandleChange()
bei System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle, Boolean assignUniqueID)
bei System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle)
bei System.Windows.Forms.NativeWindow.WindowClass.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
---- Recent log messages:
20:32:49.499 [1] DEBUG - Forms designer: deserializing a property assignment:
20:32:49.499 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=TransparentColor, Target=[CodeFieldReferenceExpression: Name=imageList1, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=Transparent, Target=[CodeTypeReference: System.Drawing.Color]]]
20:32:49.499 [1] DEBUG - Forms designer: deserializing a property assignment:
20:32:49.499 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=TransparentColor, Target=[CodeFieldReferenceExpression: Name=imageList1, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=Transparent, Target=[CodeTypeReference: System.Drawing.Color]]]
20:32:49.521 [1] DEBUG - Forms designer: Initializing nested service container of picboxRaum [System.Windows.Forms.PictureBox], SizeMode: Normal using Reflection
20:32:49.523 [1] DEBUG - Forms designer: Initializing nested service container of label1 [System.Windows.Forms.Label], Text: using Reflection
20:32:49.525 [1] DEBUG - Forms designer: Initializing nested service container of numupdown_breite [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.526 [1] DEBUG - Forms designer: Initializing nested service container of numupdown_länge [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.527 [1] DEBUG - Forms designer: Initializing nested service container of numupdown_länge2 [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.529 [1] DEBUG - Forms designer: Initializing nested service container of numupdown_breite2 [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.529 [1] DEBUG - Forms designer: Initializing nested service container of lblPfeilB [System.Windows.Forms.Label], Text: using Reflection
20:32:49.531 [1] DEBUG - Forms designer: Initializing nested service container of picBoxBrett [System.Windows.Forms.PictureBox], SizeMode: Normal using Reflection
20:32:49.532 [1] DEBUG - Forms designer: Initializing nested service container of panel1 [System.Windows.Forms.Panel], BorderStyle: System.Windows.Forms.BorderStyle.None using Reflection
20:32:49.532 [1] DEBUG - Forms designer: deserializing a property assignment:
20:32:49.532 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=BackColor, Target=[CodeFieldReferenceExpression: Name=panel1, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=ControlLight, Target=[CodeTypeReference: System.Drawing.SystemColors]]]
20:32:49.532 [1] DEBUG - Forms designer: deserializing a property assignment:
20:32:49.532 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=BackColor, Target=[CodeFieldReferenceExpression: Name=panel1, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=ControlLight, Target=[CodeTypeReference: System.Drawing.SystemColors]]]
20:32:49.533 [1] DEBUG - Forms designer: Initializing nested service container of numUpDownBMindestB [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.535 [1] DEBUG - Forms designer: Initializing nested service container of numUpDownBMindestL [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.536 [1] DEBUG - Forms designer: Initializing nested service container of numUpDownBrettB [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.537 [1] DEBUG - Forms designer: Initializing nested service container of numericUpDown5 [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.538 [1] DEBUG - Forms designer: Initializing nested service container of numericUpDown6 [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.539 [1] DEBUG - Forms designer: Initializing nested service container of numUpDownBrettL [System.Windows.Forms.NumericUpDown], Minimum = 0, Maximum = 100 using Reflection
20:32:49.553 [1] FATAL - UnhandledException caught
--> Exception:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei System.Windows.Forms.NativeWindow.AddWindowToTable(IntPtr handle, NativeWindow window)
bei System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle, Boolean assignUniqueID)
bei System.Windows.Forms.Design.ControlDesigner.ChildSubClass..ctor(ControlDesigner designer, IntPtr hwnd)
bei System.Windows.Forms.Design.ControlDesigner.HookChildHandles(IntPtr firstChild)
bei System.Windows.Forms.Design.ControlDesigner.HookChildControls(Control firstChild)
bei System.Windows.Forms.Design.ControlDesigner.OnHandleChange()
bei System.Windows.Forms.Design.ControlDesigner.DesignerWindowTarget.OnHandleChange(IntPtr newHandle)
bei System.Windows.Forms.Control.ControlNativeWindow.OnHandleChange()
bei System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle, Boolean assignUniqueID)
bei System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle)
bei System.Windows.Forms.NativeWindow.WindowClass.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
20:32:49.557 [1] FATAL - Runtime is terminating because of unhandled exception.
---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.FormsDesigner.FormsDesignerViewContent
ProjectService.OpenSolution: [Solution: FileName=D:\vbnet\Laminat_v2\Laminat_v2.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [VBNetProject: Laminat]