这是indexloc提供的服务,不要输入任何密码
Skip to content

Exception thrown: 'System.ComponentModel.Win32Exception' in WindowsBase.dll #344

@kymn04

Description

@kymn04

(It's my first issue on Github, I apologize in advance for my English.)

MLibTest throw 'System.ComponentModel.Win32Exception' when I repeat to turn on/off ColorPicker and move tab1<->tab2 a few time.

image

'System.ComponentModel.Win32Exception' is also thrown randomly, when I repeat a few time to create a Window which include a DockingManager(having documents) then to close the Window.

And I found the issue that

// added inside FloatingWindowContentHost.BuildWindowCore(HandleRef)
AutomationProperties.SetName(_rootPresenter, "FloatingWindowHost");

resolves the exception.

I thought it can be applied to LayoutAutoHideWindowControl so I tried the below.

// added inside LayoutAutoHideWindowControl.BuildWindowCore(HandleRef)
AutomationProperties.SetName(_internalHostPresenter, "InternalWindowHost");

Then it seems the exception does not occur.

Does this issue happen to others and is my trial correct to resolve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions