-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
It won't be able to listen to the clipboard data after running for a long time #30
Comments
Any progress? It also happened in my plugin, also WPF and .NET 7 After working for a long time, it seems the clipboard listener will stop and app can't record copy actions. |
I just suddenly find that after I close GIMP (v2.10.34), the SharpClipboard will stop listening the changes of clipboard, I tried to debug it, but it seems that WndProc function stops receiving messages like WM_DRAWCLIPBOARD after GIMP closed, I am not familiar with this project so I don't know why. Other clipboard tools like windows builtin clipboard viewer (shortcut: Win+V) worked normally.
Maybe this can help you to reproduce this problem. BTW, I debugged it using the two test project in this repo. |
UPDATE:
|
@rainyl |
@shushu789 |
@rainyl Sorry, I don't know, I'm using the traditional solution now, no third-party libraries are used |
@shushu789 Well, Thanks~ |
Hello @shushu789 @rainyl I'll be updating the library with a fix to this issue and some few more updates. |
Great, Thanks for your works 😄 |
I'm not sure why, I'm using it in .NET 7 WPF, but sometimes it somehow doesn't work after more than an hour or two of runtime, many users have reported this problem because my WPF application is installed on many user devices, I have no other more options, I just use "clipboard. ClipboardChanged += ClipboardChanged;" like this:
InitializeComponent(). clipboard.ClipboardChanged += ClipboardChanged. ... if (e.ContentType == SharpClipboard.ContentTypes.Text) { string clipboardText = clipboard. log.Debug("clipboardText:" + clipboardText). }
It happens regularly, but not regularly, sometimes it is normal for several days, sometimes it may happen every day in a row, and when it happens, I don't get debug data in the user's logs. I would like to know where this problem may occur? Or is there any other way to debug or some possible options to solve this problem? Thanks
Development Environment
The text was updated successfully, but these errors were encountered: