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

vsgDynamicWindows broken on Windows #333

Open
AnyOldName3 opened this issue Dec 13, 2024 · 2 comments
Open

vsgDynamicWindows broken on Windows #333

AnyOldName3 opened this issue Dec 13, 2024 · 2 comments

Comments

@AnyOldName3
Copy link
Contributor

As we've discussed in the context of the Win32 window resizing problem, the message pump (implemented in vsg::Win32_Window::pollEvents) needs to be called on the same thread as owns a window to affect that window. The child windows in the vsgDynamicWindows example are created in loader threads, and those threads don't run message pumps, so messages never reach those windows, and they freeze (both literally and in the didn't handle any window messages for five seconds Win32 definition).

@AnyOldName3
Copy link
Contributor Author

Also, it emits

Warning: Error code: 1400 | Win32_Window::~Win32_Window() ::DestroyWindow(_window) failed : Invalid window handle.

twice on exit as DestroyWindow can only be called from the thread that created the window.

@AnyOldName3
Copy link
Contributor Author

Another post I thought I'd posted immediately after the last one, but still seems to be unposted now I'm looking at this tab today:

Also, it emits

Warning: Error code: 1400 | Win32_Window::~Win32_Window() ::DestroyWindow(_window) failed : Invalid window handle.

twice on exit as DestroyWindow can only be called from the thread that created the window.

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

1 participant