InvalidOperationException occur when activate ToolWindow

Docking/MDI for WPF Forum

Posted 15 days ago by Yuki
Version: 23.1.4
Platform: .NET 6.0
Environment: Windows 11 (64-bit)
Avatar

Hello,


In our application, the following exception occur sometime when activate ToolWindow.

Would you please check it?

For now, I'm not sure if there is particular steps or condition.

And I cannot reproduce it in sample project. (Our application is the same structure of sample project of #26421)

System.InvalidOperationException: Specified element is already the logical child of another element. Disconnect it first.
at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
at System.Windows.FrameworkElement.AddLogicalChild(Object child)
at System.Windows.Controls.Decorator.set_Child(UIElement value)
at System.Windows.Documents.AdornerDecorator.set_Child(UIElement value)
at ActiproSoftware.Internal.mS..ctor(FrameworkElement , FrameworkElement , Boolean , Boolean , Boolean , Boolean , Boolean )
at ActiproSoftware.Windows.Controls.Docking.DockHost.otf(ToolWindow , Side )
at ActiproSoftware.Windows.Controls.Docking.DockHost.Dt5(ToolWindow )
at ActiproSoftware.Internal.kg.JnX(DockingWindow , Boolean )
at ActiproSoftware.Internal.kg.Activate(DockingWindow window, Boolean focus)
at ActiproSoftware.Windows.Controls.Docking.DockingWindow.Activate(Boolean focus)
at ActiproSoftware.Windows.Controls.Docking.DockingWindow.Activate()

[Modified 14 days ago]

Comments (1)

Posted 14 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

I'm sorry you're having trouble.  We are not aware of any issues like this and would need a new simple sample project that shows it happening to debug with.  That sort of thing should be reproducible if you follow the same steps that cause it to occur.  Once you are able to narrow it down and can reproduce it in a sample project, please send the sample to our support address and exclude the bin/obj folders from the .zip you send so it doesn't get spam blocked.  Thank you!


Actipro Software Support

The latest build of this product (v24.1.3) was released 9 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.