-
Notifications
You must be signed in to change notification settings - Fork 133
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
"Win32Exception The operation completed successfully" on IconSourcePropertyChanged #52
Comments
Without going into the code I would assume there is an issue where some resources are not correctly disposed. Years ago, mid of 2016, I had a look at improving the icon code, but things were still unclear and never merged. If I find some time, I will check this out. Maybe I will go through the PR's that are still pending on Bitbucket to see what hidden gems are still there. |
I found this PR here: https://bitbucket.org/hardcodet/notifyicon-wpf/pull-requests/18 |
I tried using the library with this commit. Unfortunately the problem wasn't fixed. |
@WoKavo It would be nice if you can make a sample with these icons, so we can show what's going wrong here. Thx! |
Made a sample. These icons have a dark variant as well and some additional logic to it's changing, but I don't think it's relevant to the problem. |
@WoKavo Thx for your sample! I run it on my machine (TM) without this exception. The 0x80004005 means "Unspecified Error" - Not much help, yes. Looking to the source it could be
Can you possibly find out on which machines these errors occurred? @Lakritzator Should we adopt the changes from this PR? The PR looks ok to me. |
@punker76 All I know is that it's Windows 10 18362.0+, mostly 64-bit and the number of CPU cores ranges from 2 to 12. |
I've been using NotifyIcon for a long time now for my application which was working fine on my test machines but I receive a lot of logs with the aforementioned unhandled exception and this stack trace:
The NotifyIcon has several variants of icons that might change dynamically. All variants of the icons are 32x32 .ico files.
The app is for
Windows 10 18362.0+
and exceptions occur on different versions of it and at a random execution time. The app is on .net core 3.1, I've tried changing the package to .net core fork but the exception was still there.The text was updated successfully, but these errors were encountered: