Bug Report T298161
Visible to All Users

FindControl.LookAndFeel_StyleChanged method throws InvalidOperationException under certain circumstances

created 9 years ago

Devexpress method LookAndFeel_StyleChanged very often crash on some clients computer after upgrading dx version from 15.1.6 to 15.1.7:

System.InvalidOperationException: Invoke oder BeginInvoke kann für ein Steuerelement erst aufgerufen werden, wenn das Fensterhandle erstellt wurde.
   bei System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   bei System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args)
   bei DevExpress.XtraGrid.Controls.FindControl.LookAndFeel_StyleChanged(Object sender, EventArgs e)
   bei DevExpress.LookAndFeel.UserLookAndFeel.EventRecord`1.Invoke(UserLookAndFeel userLookAndFeel, EventArgs eventArgs)
   bei DevExpress.LookAndFeel.UserLookAndFeel.OnStyleChanged()
   bei DevExpress.LookAndFeel.Helpers.ContainerUserLookAndFeel.OnStyleChanged()
   bei DevExpress.LookAndFeel.UserLookAndFeel.OnParentStyleChanged(Object sender, EventArgs e)
   bei DevExpress.LookAndFeel.UserLookAndFeel.EventRecord`1.Invoke(UserLookAndFeel userLookAndFeel, EventArgs eventArgs)
   bei DevExpress.LookAndFeel.UserLookAndFeel.OnStyleChanged()
   bei DevExpress.LookAndFeel.Design.UserLookAndFeelDefault.OnStyleChanged()
   bei DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged()
   bei WfpNGNRW.F_Main_Ribb.ChangedController(Object sender, EventArgs e)
   bei DevExpress.XtraBars.BarAndDockingController.OnChanged()
   bei DevExpress.XtraBars.BarManagerAppearances.OnAppearanceChanged(Object sender, EventArgs e)
   bei DevExpress.Utils.BaseOwnerAppearance.OnChanged()
   bei DevExpress.Utils.BaseOwnerAppearance.OnApperanceChanged(Object sender, EventArgs e)
   bei DevExpress.Utils.BaseOwnerAppearance.OnChanged()
   bei DevExpress.Utils.BaseOwnerAppearance.OnApperanceChanged(Object sender, EventArgs e)
   bei DevExpress.Utils.AppearanceObject.OnChanged()
   bei DevExpress.Utils.AppearanceObject.OnPaintChanged()
   bei DevExpress.Utils.AppearanceObject.OnImageChanged()
   bei DevExpress.Utils.AppearanceObject.set_Image(Image value)
   bei WfpNGNRW.F_Main_Ribb…ctor()
   bei WfpNGNRW.F_Main_Ribb…ctor(String selNode)
   bei WfpNGNRW.c_mdiRun.RunF_Main_Ribb(Object& MainForm, String strSelNode)
   bei WfpNGNRW.F_Tiles.UIView_TileClick(Object sender, TileClickEventArgs e)
   bei DevExpress.XtraBars.Docking2010.Views.WindowsUI.WindowsUIView.RaiseTileClick(BaseTile tile)
   bei DevExpress.XtraBars.Docking2010.Views.WindowsUI.TileContainerInfo.RaiseClick(BaseTile baseTile)
   bei DevExpress.XtraBars.Docking2010.Views.WindowsUI.TileContainerInfo.DevExpress.XtraEditors.ITileControl.OnItemClick(TileItem tileItem)
   bei DevExpress.XtraEditors.TileItem.OnItemClick()
   bei DevExpress.XtraEditors.TileControlHandler.ProceedPressInItem(MouseEventArgs e, TileControlHitInfo pressInfo)
   bei DevExpress.XtraEditors.TileControlHandler.ProceedPressInItem(MouseEventArgs e)
   bei DevExpress.XtraEditors.TileControlHandler.OnMouseUp(MouseEventArgs e)
   bei DevExpress.XtraBars.Docking2010.Views.WindowsUI.TileContainerInfo.DevExpress.XtraBars.Docking2010.Views.IInteractiveElementInfo.ProcessMouseUp(MouseEventArgs e)
   bei DevExpress.XtraBars.Docking2010.Dragging.WindowsUI.DocumentManagerUIViewUIInteractionListener.OnMouseUp(MouseButtons buttons, LayoutElementHitInfo hitInfo)
   bei DevExpress.XtraBars.Docking2010.DragEngine.UIInteractionService.DoMouseUp(MouseButtons buttons, LayoutElementHitInfo hitInfo)
   bei DevExpress.XtraBars.Docking2010.DragEngine.UIInteractionService.ProcessMouseUp(LayoutElementHitInfo upHitInfo, MouseEventArgs ea)
   bei DevExpress.XtraBars.Docking2010.DragEngine.UIInteractionService.ProcessMouseOverride(IUIView view, MouseEventType eventType, MouseEventArgs ea)
   bei DevExpress.XtraBars.Docking2010.DragEngine.UIService.ProcessMouse(IUIView view, MouseEventType eventType, MouseEventArgs ea)
   bei DevExpress.XtraBars.Docking2010.DragEngine.UIViewAdapter.ProcessMouseEvent(IUIView view, MouseEventType eventType, MouseEventArgs ea)
   bei DevExpress.XtraBars.Docking2010.DragEngine.MouseEventSubscriber`1.RootUIElementMouseUp(Object sender, MouseEventArgs e)
   bei System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.MdiClient.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Comments (2)
DevExpress Support Team 9 years ago

    Hello Jan,

    Thank you for reporting this issue to us. Please give me additional time to discuss it with our R&D team. I will get back to you as soon as possible.

      Ok. I will wait…

      Answers approved by DevExpress Support

      created 9 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Other Answers

        created 9 years ago

        Thank you for quick response. We will download and test the hotfix.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.