C
caroline
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
var
dataptrchar;
maxdatalength:word;
s:array [0..200000] of char;
begin
dataptr:=StrAlloc (2000*SizeOf(char));
s:='dfsdf';
dataptr:=@s;
Edit1 .text:=dataptr^;
// StrDispose(dataptr);
StrDispose(dataptr);
end;
var
dataptrchar;
maxdatalength:word;
s:array [0..200000] of char;
begin
dataptr:=StrAlloc (2000*SizeOf(char));
s:='dfsdf';
dataptr:=@s;
Edit1 .text:=dataptr^;
// StrDispose(dataptr);
StrDispose(dataptr);
end;