Click here to Skip to main content
15,881,752 members

Comments by lewist57 (Top 2 by date)

lewist57 25-Mar-24 12:28pm View    
Thanks to those who posted solutions. Using the second set of code produced positive results.

I say "positive" in that my overall program searches a drive for directories, subdirectories and files, and loads nodes on a treeview control. The code works fine on the D:\ drive and two Google Drives (G:| and H:\) but runs out of memory on my C:\ drive, hangs up, and kicks out the following error:

System.OutOfMemoryException: 'Exception of type 'System.OutOfMemoryException' was thrown.'

I am sure that it can take some more refinement to eliminate this error, but it works great otherwise. Perhaps I will get the program in working shape and post an article on CodeProject, as even though it is now 2024, there are those (like me) who still want to use VB.net.

Really makes one appreciate OpenFileDialog control now.
lewist57 6-Sep-22 11:39am View    
Yup further research confirms your stance, there is no magic bullet here. I will stick with good old logic and regular expressions to accomplish the objectives.