dklang icon indicating copy to clipboard operation
dklang copied to clipboard

Empty constant value raised Range Check Error Exception under debuging

Open AndreyPS72 opened this issue 9 years ago • 0 comments

Workaround DKLang.pas:

function StreamReadUnicodeStr(Stream: TStream): UnicodeString; var w: Word; b: TBytes; begin w := StreamReadWord(Stream); if w=0 then result := '' else begin SetLength(b,w_2); Stream.ReadBuffer(b[0],w_2); result := TEncoding.Unicode.GetString(b); end; end;

AndreyPS72 avatar Jul 06 '16 07:07 AndreyPS72