Page 1 of 1
Access Violation in any Demo Projects (3.04)
Posted: Thu Nov 23, 2006 10:58 am
by Guest
I just installed demo version 3.04 for Delphi 7.
Demo projects is compiled well, but running compiled application leads to exception on string XLS.Read;
Code: Select all
---------------------------
Paintcellsample
---------------------------
Access violation at address 0047D199 in module 'PaintCellSample.exe'. Read of address 00000454.
---------------------------
OK
---------------------------
what is it?
Posted: Thu Nov 23, 2006 3:49 pm
by larsa
Hello
I assumes that you are trying to read an excel file. Can you send me that file?
Lars Arvidsson
Posted: Fri Nov 24, 2006 5:24 am
by Guest
any files, and from your samples also:
"C:\Program Files\XLSReadWriteII30\Samples\Delphi\ReadPictures\PictureSample.xls"
or
"C:\Program Files\XLSReadWriteII30\Samples\Delphi\CGI\Format.xls"
Posted: Fri Nov 24, 2006 6:14 am
by Guest
On exception Delphi try to open CellStorage2.pas to debug, but file is naturally does not exists in demo package.
I download demo version 3.00.02a - everythings is OK!!!!
Posted: Wed Nov 29, 2006 2:48 pm
by Guest
Last demo version 3.00.05a has same exception on read file.
Debugging shows, that line 97 in FormulaHandler2.pas (TFormulaHandler.Clear) there is call TList.Clear() which spoils memory used by function TCellStorage.Clear(), that leads to exception. In the version 3.00.02a and before this call wasn't exists. If execution of specified line is skipped then memory overwrite don't occured and file is loaded without any problems.
Debug screens before and after execution of line 97
before:

after

Posted: Wed Nov 29, 2006 6:49 pm
by larsa
Hello
This is fixed now in update 3.00.06
Lars Arvidsson