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

Fix: listener will stop after run for a long time or stopped by some application like GIMP #34

Closed
wants to merge 2 commits into from

Conversation

rainyl
Copy link

@rainyl rainyl commented Aug 18, 2023

More details at #30

I have tested other WinForm and WPF apps that listening clipboard using SetClipboardViewer(), WM_DRAWCLIPBOARD, and WndProc(), which will also be blocked after closing GIMP, but after replacing SetClipboardViewer() with newer API AddClipboardFormatListener(), the problem has been solved.
Actually, I'm still confused that why WndProc() can't receive WM_DRAWCLIPBOARD message after GIMP was closed, maybe it's a bug of GIMP or even windows itself, like something that the message listener list is broken...

But, finally, the problem has been solved, and I'm happy to open this PR to help other developers.

Best wishes.

@rainyl rainyl closed this Aug 31, 2023
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

Successfully merging this pull request may close these issues.

1 participant