-
Notifications
You must be signed in to change notification settings - Fork 200
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
Vanara.Windows.Shell throws COMException when enumerating special items (WinAppSDK 1.5) #474
Comments
As I can see, this is an internal exception when getting the array, which is not handed through to the caller. However, I was wondering if this is expected behavior? |
Here you can see, which folder fail in particularly:
|
btw., This is the source base we are talking about: https://github.com/tajbender/electrifier.v1.24/tree/509cf684fb93db24b809ad77fd77c4e2d91207b3 I also see, navigating to
|
Sorry for that, I've found my bug: electrifier/electrifier-v1.25@fb6fa1b Creating a new copy of |
Hmm, I guess this is an issue with privileges:
|
…#21) This fixes a bug when enumerating `Libraries` folder. It has been mentioned in [github.com/dahall/Vanara #474:](dahall/Vanara#474). dahall/Vanara#474 (comment)
…ittle more efficient. Should help #474
I just pushed an update to 4.0.3 (soon available via AppVeyor) that should eliminate the exceptions you're seeing. They weren't problems. I was using exceptions to catch failures when testing for different types of shell items. Let me know if the update works for you. |
Thank you very, very much. I'll try that build asap. |
Did that fix work for you? |
Yes, it did. 👍
However, Issues I have found on my special machine:
But I'm still about to investigate these things. 🧠 |
@dahall: this works fine 🆗 |
Describe the bug and how to reproduce
Using
Vanara.Windows.Shell
v4.0.2Enumerating my
Desktop folder
<ShellFolder
> using the code below. After getting resulting child ItemsshFolder.EnumerateChildren(...)
, accesssing the children <IEnumerable<ShellItem>
> throws COMExceptions for - in my case - nine items.What code is involved
I can reproduce this behaviour with some special folders in the Shell32 Namespace, like
This PC
and others. Others work well.Expected behavior
Getting the Items without
COMException
s.Screenshots
Youtube (low quality): https://youtu.be/ijMJe8dk9w4?si=TKNZEdk25pzY5Nix
The text was updated successfully, but these errors were encountered: