Export to GitHub

excellibrary - issue #95

Exception of type 'System.OutOfMemoryException' was thrown.


Posted on Jun 16, 2011 by Massive Monkey

What steps will reproduce the problem? 1.Just tried to open a .xls like this ExcelLibrary.SpreadSheet.Workbook book = ExcelLibrary.SpreadSheet.Workbook.Load("stringfilename");

What is the expected output? What do you see instead? Expect to read the excel. But exception thrown

What version of the product are you using? On what operating system? April 14 version (14042011)

Comment #1

Posted on Jul 22, 2011 by Happy Lion

The same to you...

Comment #2

Posted on Aug 20, 2011 by Swift Monkey

for .xsl file it worked ... but when i try to load .xslm its throwing me this exception . Please if some one can help it will be real good

Comment #3

Posted on Aug 21, 2011 by Happy Cat

I too have this issue. It happens with xlsx files, but not with xls files. I have tried handing the constructor a stream as well as the file name with the same result.

My spread sheet has 6 pages, and around 800 rows per page.

There is no inner exception. Here is the stack trace from the exception.

at System.Collections.Generic.List`1..ctor(Int32 capacity) at ExcelLibrary.CompoundDocumentFormat.MasterSectorAllocation.InitializeMasterSectorAllocationTable() at ExcelLibrary.CompoundDocumentFormat.MasterSectorAllocation..ctor(CompoundDocument document) at ExcelLibrary.CompoundDocumentFormat.CompoundDocument..ctor(Stream stream, FileHeader header) at ExcelLibrary.CompoundDocumentFormat.CompoundDocument.Open(Stream stream) at ExcelLibrary.CompoundDocumentFormat.CompoundDocument.Load(Stream stream) at ExcelLibrary.SpreadSheet.Workbook.Load(Stream stream) at test.cs.Program.AssociateProgramBook() in C:\Users\tmckenzie\documents\visual studio 2010\Projects\SMDB\test.cs\Program.cs:line 24 at test.cs.Program.Main(String[] args) in C:\Users\tmckenzie\documents\visual studio 2010\Projects\SMDB\test.cs\Program.cs:line 18 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

Comment #4

Posted on Sep 9, 2012 by Happy Kangaroo

Same exact problem here as in Comment 3, but i have an xlsx file with 2 empty sheets and 1 sheet with 10 cells filled with data.

Comment #5

Posted on Jun 3, 2013 by Happy Lion

Sorry to post here, but I'm with the same problem with xlsx EXCEL files. I can't to use interop or ole db connection library's to read and write my sheets. I not get to resolve it.

Comment #6

Posted on Jul 1, 2013 by Quick Ox

Any news on this? I have the same problem.

Comment #7

Posted on Jul 29, 2013 by Happy Bird

I get the same error when I try to call the Save method on a workbook that I have populated in code. Any solutions yet?

Comment #8

Posted on Sep 27, 2013 by Happy Lion

I have the same problem.

Comment #9

Posted on Oct 24, 2013 by Helpful Bear

I've got the same problem too, while opening an XLSX using the "stream" constructor of Workbook.Load

Comment #10

Posted on Jan 7, 2015 by Happy Lion

Dim book = ExcelLibrary.SpreadSheet.Workbook.Load(fileName or Stream)

Exception of type 'System.OutOfMemoryException' was thrown.

Status: New

Labels:
Type-Defect Priority-Medium