QuoteThanks for the info. I have done a little research and it would appear that the "No more files" exception is thrown when .net attempts to get a list of files from an empty network maped directory as illustrated in the code below. I found this mentioned in this MSDN Forum post describing the same problem.
The problem is that it's hard to tell where the problem lies. The error thrown is an internal .NET Framework error so the problem could be:
1. A bug in the .NET Framework when running in VirtualBox
2. A bug in Windows when running on VirtualBox that returns an invalid error code
3. A bug in the VirtualBox network/mapped drive driver, that returns an unexpected error code
4. Any/all of the above
String[] files = Directory.GetFiles("\\localhost\myfolder","abc*.exe", SearchOption.AllDirectories);
I have discussed this with smiley, who created the audio manager plug-in. He and I ran a number of tests to confirm that this is indeed the behavior. It would appear that ignoring the "No more files" exception on a network drive is, more likely than not, acceptable and would allow the .NET Directory.GetFiles function to work the same on both networked and local drives.
I hope this info is useful to you. I'll leave it up to your own good judgment as how to proceed from here. I will be happy to volunteer as a tester or volunteer to create an old style C dll if you decide to pursue this issue further. Thanks for all your hard work; it's greatly appreciated.
Rick