-
Notifications
You must be signed in to change notification settings - Fork 197
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
Problems with ShellNamespaceTreeControl #153
Comments
I think I addressed the first problem with a property decoration. However, using the unit test app I cannot replicate the second issue. I've expanded and contracted system folders, namespace folders, zip files, etc. on my system about 50 times and never see an exception. If you're able to reproduce with consistency, please let me know how. |
Thanks for your quick reply. In the meantime I found the second issue only arises when built in Nice, I love those bugs.
|
I can't replicate it, even with your instructions. Since I think I fixed your first issue (please confirm) with the release yesterday, let me know if I can close this. |
Sure you can close this. Any Ideas what I can do to narrow the problem on my machine down? |
It is interesting to look at the logs. It appears the fault is in ComCtl32.dll, which is the hosting dll for the underlying TreeView control. That makes me think it may have something to do with message handling (or event handling in the COM wrapper). I'll take a closer look at anything in my code in that space, but it is pretty light. It may be a problem with the |
Thank you so much. In the meantime, I'll also do some deeper investigations and will let you know if I have any more idea. However, David, please don't spend too much of your time while digging into this. Perhaps it's my machine that suffers of some kind of bad configuration, although it's a very clean developer machine with TortoiseGIT, Visual Studio, Kaspersky AV and some more development tools, sort of nothing special. However, thanks for supporting me. |
@dahall: I have an Idea: Originally, I placed the Tree into a Are However, I'm very sorry for bothering you with this :( EDIT: Although that doesn't clarify why the test-app is crashing on my machine 😡 |
@dahall: Now, I'm almost pretty sure, about 50% 😞, it has to do with Can you confirm this on your machine? |
My testing app has Dock = Fill and it works without error even with automated testing that changes the form size 50 times and selects 50 items. Sorry. |
Hi David, what Framework version are you using for your testing? |
4.5.2 |
Okay, thank you very much so far. I'll reinstall my machine eventually and hope this will help. Thank you very much! |
I was doing some testing on the events today and found that a number of them return a seemingly wrong value to the interface. I'm playing with values now since the docs are not very good. I'll let you know when I have something to test. |
I can't figure out how, but I just got your exception. I'm opening this up until I can figure it out. |
Maybe it's just an InvokeRequired(), that's missing somewhere? Just a thought. By the way, how can I cast a Shell32.ShellFolder object into an IShellFolder? IShellFolder member is protected as you know, so how do I get it? |
I've had to redo much of the On you second question, there wasn't a way to get the underlying |
… (keyboard movement could be improved), but much better.
It's working much better now, but I wouldn't consider it "production". If you really need it and have time to work on it, please submit a PR. |
If you have time, please give the update a test. You can add https://ci.appveyor.com/nuget/vanara-prerelease to your NuGet package repository list and then pull the 3.2.14 packages. |
Hello David, thank you so much! I've played around with this version and it works much more stable now. Great work! However, I found one (small) Issue: When navigating to a sub-folder of
Any Idea? Thank you very much again, and have I nice weekend 🌞 Regards, |
Okay, I'll investigate this. Thank you so much! |
This is now officially published to NuGet |
Hello David,
I just wanted to integrate ShellNamespaceTreeControl but found issues:
1. When using the Designer, I get the following MessageBox:
This happens after dropping the Control onto its form in the Designer, and hitting
Start
the first time.2. AccessViolationException:
Describe the bug
While playing around with the TreeView, trying to expand this and that Node, I sometimes get an AccessViolationException. This isn't often the case, about 20-30 tries that went okay before the exception occurs.
Don't think it has to do with a specific folder type, and when, I couldn't find the pattern this makes it happen.
Here is the debugger's "View Details" output:
What code is involved
Just a plain Windows Forms window, nothing in it except the ShellNamespaceTreeControl. BTW, this also happened to me using the Unit Test App.
Using
Vanara v3.2.12
,.net Framework 4.6
on a Windows 10 machine.Thank you very much in advance, regards,
tajbender
The text was updated successfully, but these errors were encountered: