ERangeError in MemUtils.pas
Posted: Thu 11 Sep 2008 15:31
During development, we make sure, all code we use is compiled with Range Checking and Overflow Checking on.
When reading from a Dataset with certain special characters (like the Euro Sign) in the column content, a statement in MemUtils.pas will throw an ERangeError when compiled with Overflow Checking on.
To circumvent this error, change line 1193 from
to
Please include this change in the next release.
Thanks
When reading from a Dataset with certain special characters (like the Euro Sign) in the column content, a statement in MemUtils.pas will throw an ERangeError when compiled with Overflow Checking on.
To circumvent this error, change line 1193 from
Code: Select all
PWord(Cardinal(Dest) + DestIdx + Result)^ := wc;
Code: Select all
PWord(Cardinal(Dest) + DestIdx + Result)^ := Word(wc);
Thanks