Exception using CommandBarsManager


Author
Message
Craig Swearingen
Craig Swearingen
Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)
Group: Forum Members
Posts: 99, Visits: 654
Some users of my application experience the exception below when closing a NUIDocument that has an NForm for its client.  The NForm has a CommandBarsManager on it.  Seems to be a timing issue as it doesn't happen consistently so I can't provide a test program to demonstrate this.  I'm using build 13.11.26.12.  Could you change your get_Visible() method to check for NULL before using its objects?

System.NullReferenceException: Object reference not set to an instance of an object.
   at Nevron.UI.WinForm.Controls.NCommandState.get_Visible()
   at Nevron.UI.WinForm.Controls.NCommandParent.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Nevron.UI.WinForm.Controls.NCommandParent.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search