Exception is thrown when calling Dispose method on XtraUserControl
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at DevExpress.XtraLayout.LayoutDesignerMethodsProvider.DevExpress.XtraLayout.ILayoutDesignerMethods.BeginChangeUpdate()
at DevExpress.XtraLayout.LayoutControlImplementor.ProcessLookAndFeelStyleChanged()
at DevExpress.XtraLayout.LayoutControlImplementor.OnLookAndFeelStyleChanged(Object sender, EventArgs e)
at DevExpress.XtraLayout.LayoutControl.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
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 DevExpress.XtraLayout.LayoutControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Hello,
My attempts to reproduce this behavior were unsuccessful. I have attached a sample project. Please modify this project so that it illustrates the issue and send it to us.
I look forward to your response.
Hi,
I managed to isolate the issue from our code. Project is attached.
After starting, click on the question mark (second tab will open), then close the program.
Exception is thrown in DesignerControl.Designer.cs at line 22.
This is a result of our explicit dispose implementation, but still it seems like a bug at your side.
Thanks for looking into it.
Regards,
Koen