CnPack Forum

#1 Bug in cnDebug.pas AddTimeDesc
Hello,

i found a bug in cnDebug.pas AddTimeDesc at line 1215

here there is an Ansiconversion from the wrong stringvariable

[code]function TCnDebugger.AddTimeDesc(const ATag: string): PCnTimeDesc;
var
ADesc: PCnTimeDesc;
Len: Integer;
TTag: AnsiString;
begin
New(ADesc);
FillChar(ADesc^, SizeOf(TCnTimeDesc), 0);
TTag := AnsiString(TTag);
Len := Length(TTag);
if Len > CnMaxTagLength then
Len := CnMaxTagLength;

Move(PAnsiChar(TTag)^, ADesc^.Tag, Len);
..

#1 >>Next Page

Forum:CnWizards IDE Wizard ...
Thread:Bug in cnDebug.pas A ...
Next Thread:Bug in cnDebug.pas T ...

Home
Login

Powered by Discuz!