OutOfMemoryException adding many image frames to Image List
When attempting to add image frames using SelectActiveFrame) to an image list I get an Out of Memory exception. All works 100% if I process less than 174 pages but anything over this produces this error. In it's simplest form my code is;

    var scannedImage = (Bitmap)Image.FromFile(@"C:\Users\rbl\Documents\Modelware\City Prop\TIFF Files\barcodememory.tiff");
    var dim = new FrameDimension(scannedImage.FrameDimensionsList[0]);
    var imageCount = scannedImage.GetFrameCount(dim);
    var currentBatch = new List<Image>();

    for (var i = 0; i < imageCount; i++)
    {
    scannedImage.SelectActiveFrame(dim, i);

    currentBatch.Add(new Bitmap(scannedImage));
    // Above experiences following error after +/- 174 pages
    //System.OutOfMemoryException was unhandled
    //Message=Out of memory.
    //Source=System.Drawing
    }

OutOfMemoryException adding many image frames to Image List
===

When attempting to add image frames using SelectActiveFrame) to an image list I get an Out of Memory exception. All works 100% if I process less than 174 pages but anything over this produces this error. In it's simplest form my code is;

    var scannedImage = (Bitmap)Image.FromFile(@"C:\Users\rbl\Documents\Modelware\City Prop\TIFF Files\barcodememory.tiff");
    var dim = new FrameDimension(scannedImage.FrameDimensionsList[0]);
    var imageCount = scannedImage.GetFrameCount(dim);
    var currentBatch = new List<Image>();

    for (var i = 0; i < imageCount; i++)
    {
    scannedImage.SelectActiveFrame(dim, i);

    currentBatch.Add(new Bitmap(scannedImage));
    // Above experiences following error after +/- 174 pages
    //System.OutOfMemoryException was unhandled
    //Message=Out of memory.
    //Source=System.Drawing
    }
