I have an issue with TAdvExplorerTreeView V1.5.1.0. If i set FolderPath to a local folder, everything is working as expected. If i set FolderPath to a UNC path containing subfolders it is working too.
But if i set FolderPath to an UNC path containing only the server name and a share name, the explorer treeview is not working (no display in the navigation bar and i cannot change directories using SetSelectedFolder).
Examples:
C:\ -> working
C:\SharedFolder -> working
\\Server\ShareName\SubFolder1 -> working
\\Server\ShareName -> not working
I retested this here but I could not see an issue with an UNC FolderPath and I could not see an access violation. Do you have exact details for how to reproduce this?
I could also not see code changes that would change the behavior with UNC.
a) change the folder path to an existing UNC path on your system (it must be a root path with no subdirectories. In my case it was something like “\\servername\sharename\”)
or
b) create a share on your local system C drive.
If the UNC path exists, you won’t get the “Invalid folder path” message and you should see the AccessViolation error.
I think, the path validation happens before the access violation
I really need steps to reproduce this as from the code, I can really not see any reason for Owner being nil there. Owner is already set at Nodes creation time.
Can you provide a sample source app + steps with which we can reproduce this?
On network shares, you can use an lpFileName in the form of the following: "\\Server\Share\*". However, you cannot use an lpFileName that points to the share itself; for example, "\\Server\Share" is not valid.
I reopened this case once again but I cannot make sense of what you write nor can I reproduce a problem.
I set in code AdvExplorerTreeVie.FolderPath to a value '\servername\sharename' and this works as expected. When it finds this construct, it will append '.' to find all files. FindFirst()/FindNext() return correctly all the files on this path. I retested this once more in 32bit and 64bit and see no failure at all.
Again, what exactly do you mean with '\localhost' ? Localhost is not a valid server name here. When I use '\localhost' it simply says "invalid path".
So, what exactly are you doing?