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