[Lazarus] SEGFAULT: difference between pointer and dynarray?
leledumbo
leledumbo_cool at yahoo.co.id
Sat Dec 29 06:26:55 CET 2012
> The Assembler shows that @lib and @lib[0] are exactly same thing.
The following program shows that they are NOT the same
#!/usr/bin/instantfpc
var
a1: array of Integer;
begin
setlength(a1,1);
writeln(ptruint(@a1));
writeln(ptruint(@a1[0]));
end.
output:
$ chmod +x test.pas
$ ./test.pas
134651632
3077795880
--
View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-SEGFAULT-difference-between-pointer-and-dynarray-tp4028296p4028303.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
More information about the Lazarus
mailing list