Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Mona04 opened this issue Apr 26, 2022 · 1 comment
Closed

Comments

@Mona04
Copy link
Contributor

Mona04 commented Apr 26, 2022

(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?

@bbuerger
Copy link
Contributor

bbuerger commented Jun 1, 2022

I created a pull request for this change:
#357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants