jatpat / excellibrary

Automatically exported from code.google.com/p/excellibrary
0 stars 0 forks source link

Load fails for large files #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This problem has already been mentioned, but here is some more detail.

What steps will reproduce the problem?
1. Reading a large file. (For me large is from around 10mb)
2.
3.

What is the expected output? What do you see instead?
I have encountered this problem at two different stages (not sure what it 
depends on, possibly:

1.
internal static Int32[] ReadArrayOfInt32(BinaryReader reader, int count)
        {
            Int32[] data = new Int32[count];
            for (int i = 0; i < data.Length; i++)
            {
                data[i] = reader.ReadInt32(); //throws EndOfStreamException
                //reader Length is   23164416
                //reader Position is 2106864640 (I suppose Length is 
supposed to be greater than Position?)
            }
            return data;
        }

2.
        internal int[] ReadSectorDataAsIntegers(int SID)
        {
            int offset = GetSectorOffset(SID);
            Reader.BaseStream.Position = offset; //throws 
ArgumentOutOfRangeException (GetSectorOffest returns large negative int)
            return ReadArrayOfInt32(Reader, SectorSize / 4);
        }

What version of the product are you using? On what operating system?
ExcelLibrary_20090331.zip

Please provide any additional information below.
The excel files I am using have lots of formulas and macros

Original issue reported on code.google.com by KSchr...@gmail.com on 7 May 2009 at 7:08

GoogleCodeExporter commented 9 years ago
hey guy , did u solve this problem :( , pls help me 

Original comment by wyhiswy...@gmail.com on 19 Feb 2013 at 3:15