Im using Xls Read Write version 5.20.49
if i create a new Excel sheet using microsoft Excel 2013
and add a Line Chart and save that file
create a new Delphi project and in the
project Options - compiling - Runtime Errors
if the Overflow checking and range checking are checked
and you try and read the xlsx file you get a
Integer overflow. exception
im not worried about the chart but we are unable to load the data from the excel file when this happens
Integer Overflow
Re: Integer Overflow
Hello
Overflow checking and range checking shall be turned off. Integers and arrays are used in such a way the these checks can't be used.
Overflow checking and range checking shall be turned off. Integers and arrays are used in such a way the these checks can't be used.
Lars Arvidsson, Axolot Data
Re: Integer Overflow
Version 5.20.50
still gets the integer overflow error
still gets the integer overflow error
Re: Integer Overflow
Version 5.20.51
still gets the integer overflow error
still gets the integer overflow error
Re: Integer Overflow
version 5.20.52
getting the integer overflow error
getting the integer overflow error
Re: Integer Overflow
You can solve it by temporarily turning of range checks and overflow checks in unit xpgPXML.pas function TXpgReadXML.QNameHashA: longword;
@Lars: Could you add this to XLSReadWrite, please?
Code: Select all
{$IFOPT R+}
{$DEFINE R_PLUS}
{$RANGECHECKS OFF}
{$ENDIF}
{$IFOPT Q+}
{$DEFINE Q_PLUS}
{$OVERFLOWCHECKS OFF}
{$ENDIF}
function TXpgReadXML.QNameHashB: longword;
var
..
begin
..
end;
{$IFDEF R_PLUS}
{$RANGECHECKS ON}
{$UNDEF R_PLUS}
{$ENDIF}
{$IFDEF Q_PLUS}
{$OVERFLOWCHECKS ON}
{$UNDEF Q_PLUS}
{$ENDIF}
Re: Integer Overflow
version 5.20.53
getting the integer overflow error - in the default build
after adding d3nton's suggested solution - i'm no longer getting the error
getting the integer overflow error - in the default build
after adding d3nton's suggested solution - i'm no longer getting the error
Re: Integer Overflow
Using Version 5.20.56 default build
gets Integer overflow with xlsx files that have image or chart
I have added an example project to Github
Git link
https://github.com/dangas56/XLSWR_IntegerOverflow.git
zip files are here
https://github.com/dangas56/XLSWR_Integ ... /tag/1.0.1
Adding d3nton's suggested solution resolved the issue
is there a reason why its not in the release version?
gets Integer overflow with xlsx files that have image or chart
I have added an example project to Github
Git link
https://github.com/dangas56/XLSWR_IntegerOverflow.git
zip files are here
https://github.com/dangas56/XLSWR_Integ ... /tag/1.0.1
Adding d3nton's suggested solution resolved the issue
is there a reason why its not in the release version?
Re: Integer Overflow
Hello
As I wrote before, the code is written in such a way that overflow checking shall be turned off. The fix suggested by d3nton only solves one problem. The whole code must be checked before overflow checking can be on, and this will not happened. If you want to have overflow checking on, use the compiled dcu:s instead of compiling the source code.
As I wrote before, the code is written in such a way that overflow checking shall be turned off. The fix suggested by d3nton only solves one problem. The whole code must be checked before overflow checking can be on, and this will not happened. If you want to have overflow checking on, use the compiled dcu:s instead of compiling the source code.
Lars Arvidsson, Axolot Data