This project has moved. For the latest updates, please go here.

Opening spreadsheets Fail After 100 opens

Aug 23 at 8:21 PM
After I open/edit/close about 100 spreadsheets My Class Stalls at
ExcelWorkbook Workbook = package.Workbook;

I am not sure why, plenty of cpu and memory,
I get a ContextSwitchDeadlock while debugging.
Any Ideas?

Example Code
            FileStream file = new FileStream(NewFileName, FileMode.Create, FileAccess.Write);
            FileInfo SpreadSheetFileInfo = new FileInfo(SpreadSheetFile.Key.ToString());
            ExcelPackage package = new ExcelPackage(SpreadSheetFileInfo);
            ExcelWorkbook Workbook = package.Workbook;
            ExcelWorksheets Worksheets = package.Workbook.Worksheets;
            foreach (ExcelWorksheet Worksheet in Worksheets)
            {
                 //edit
            }
            package.SaveAs(file);
            file.Close();
            file.Dispose();
            Workbook.Dispose();
            Worksheets.Dispose();
            package.Dispose();