today, I've run into a bit of a problem. The image object you can see below keeps giving me an outofmemory exception as I iterate through the list of files. I'm trying to make a list of resolutions of each image.
I've tried disposing it to remove the object from memory but that doesn't seem to work....
List<string> temp = new List<string>();
Image img;
foreach(string s in fileArray)
            {
                img = Image.FromFile(s);
                temp.Add(img.Width.ToString() + "x" + img.Height.ToString());
                img.Dispose();
            }