Page 1 of 1

EAccessViolation when writing date val. to an existing file.

Posted: Wed Apr 10, 2013 8:27 am
by d3nton
Hello larsa.
Could you please take a look at the sample code below.
It produces an AccessViolation when writing date values to an already existing xls file.
I am using XLSReadWrite v5.10.14 on Delphi XE2:

Sample code:
var
ExcelFile5 : TXLSReadWriteII5;
lindex :Integer;
begin
ExcelFile5 := TXLSReadWriteII5.Create(nil);
ExcelFile5.Version := Xc12Utils5.xvExcel97;
ExcelFile5.Filename := 'D:\output.xls';
for lIndex := 0 to 1000 do begin
ExcelFile5[0].AsDateTime[0,lindex] := date;
end;
ExcelFile5.Write;
ExcelFile5.Read;
for lIndex := 0 to 1000 do begin
ExcelFile5[0].AsDateTime[0,lindex] := date;
end;
ExcelFile5.Write; <- AccessViolation
end.

thanks for help. d3nton

Re: EAccessViolation when writing date val. to an existing file.

Posted: Tue Apr 23, 2013 8:02 am
by d3nton
Are there any news regarding this issue?
It is still reproducible with V5.10.18.
A fix would be nice.
Thank you.

Re: EAccessViolation when writing date val. to an existing file.

Posted: Thu Apr 25, 2013 8:49 am
by larsa
Hello

This will be fixed in the next update, posted next week.

Re: EAccessViolation when writing date val. to an existing file.

Posted: Fri Apr 26, 2013 7:30 am
by d3nton
Okay.
Thanks for your support!

Re: EAccessViolation when writing date val. to an existing file.

Posted: Tue Apr 30, 2013 9:56 am
by larsa
Hello

This is fixed in update 5.10.19