Access Violation in any Demo Projects (3.04)

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Guest
Posts: 83
Joined: Tue Aug 16, 2005 6:08 pm

Access Violation in any Demo Projects (3.04)

Post 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?
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

I assumes that you are trying to read an excel file. Can you send me that file?


Lars Arvidsson
Guest
Posts: 83
Joined: Tue Aug 16, 2005 6:08 pm

Post 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"
Guest
Posts: 83
Joined: Tue Aug 16, 2005 6:08 pm

Post by Guest »

On exception Delphi try to open CellStorage2.pas to debug, but file is naturally does not exists in demo package.

Image

I download demo version 3.00.02a - everythings is OK!!!!
Guest
Posts: 83
Joined: Tue Aug 16, 2005 6:08 pm

Post 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:
Image
after
Image
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

This is fixed now in update 3.00.06


Lars Arvidsson
Post Reply