Vincent Snijders schreef:
Hi,
Consider this piece of code:
var
p: pointer;
begin
p := getmem(100);
reallocmem(p,0);
p := nil;
end.
Do I need to do p:=nil, if I want to be sure that p contains nil?
I saw that both system.SysReAllocMem and cmem.CReAllocMem do this, is
size=0, but the
On Mon, 7 May 2007, Vincent Snijders wrote:
Vincent Snijders schreef:
Hi,
Consider this piece of code:
var
p: pointer;
begin
p := getmem(100);
reallocmem(p,0);
p := nil;
end.
Do I need to do p:=nil, if I want to be sure that p contains nil?
I saw that
Michael Van Canneyt schreef:
On Mon, 7 May 2007, Vincent Snijders wrote:
Vincent Snijders schreef:
Hi,
Consider this piece of code:
var
p: pointer;
begin
p := getmem(100);
reallocmem(p,0);
p := nil;
end.
Do I need to do p:=nil, if I want to be sure that p contains nil?
I saw that
Hi,
Consider this piece of code:
var
p: pointer;
begin
p := getmem(100);
reallocmem(p,0);
p := nil;
end.
Do I need to do p:=nil, if I want to be sure that p contains nil?
I saw that both system.SysReAllocMem and cmem.CReAllocMem do this, is
size=0, but the docs at