Is there another way to enumerate files on the SD card? Something that does not involve GetFiles()?
My code looks similar to this:
ArrayList fileInfo = new ArrayList(); if (Directory.Exists(path)) { DirectoryInfo dirInfo = new DirectoryInfo(path); foreach (FileInfo file in dirInfo.GetFiles()) { fileInfo.Add(file); } }
The code poops out on the foreach statement (OutOfMemory exception).