Hello.
I got an access violation when trying to execute the following code on 64bit (xlsReadWrite 5.10.07):
var
ExcelFile5 : TXLSReadWriteII5;
begin
ExcelFile5 := TXLSReadWriteII5.Create(nil);
ExcelFile5.Filename := 'D:\output.xlsx';
ExcelFile5.Sheets[0].AsFloat[0, 0] := 10000000;
ExcelFile5.Write;
end.
regard d3nton
Access violation when writing a xlsx file on 64bit
-
- Posts: 17
- Joined: Fri Feb 01, 2013 8:24 pm
Re: Access violation when writing a xlsx file on 64bit
I got this problem too.
The exception comes from this routine in xpgPXML:
procedure TXpgWriteXML.AddAttribute(const AName, AValue: AxUCString);
begin
AddAttr(AName);
AddAttr('="');
CopyToBufUTF8(AValue);
AddAttr('" ');
end;
The exception comes from this routine in xpgPXML:
procedure TXpgWriteXML.AddAttribute(const AName, AValue: AxUCString);
begin
AddAttr(AName);
AddAttr('="');
CopyToBufUTF8(AValue);
AddAttr('" ');
end;
Re: Access violation when writing a xlsx file on 64bit
I have encountered the same access violation in XE2. The same problem happened while compiling then executing the provided sample program DirectWrite.
Re: Access violation when writing a xlsx file on 64bit
While I look through the QA in this forum, I found someone has already posted the temporary fix for the problem. That is to change the order of two included units in the USES section. The correct order is XLSReadWriteII5,XLSSheetData5 not the other way around.
Re: Access violation when writing a xlsx file on 64bit
But I still encountered the same access violation in the DirectWrite sample program after I rearrange the order of these two units. I am using Delphi XE2 targeted 32bit platform in the Windows 7 64bits.
Re: Access violation when writing a xlsx file on 64bit
Hello
The problem is fixed in update 5.10.08.
The problem is fixed in update 5.10.08.
Lars Arvidsson, Axolot Data