[Lazarus] SEGFAULT: difference between pointer and dynarray?

xrfang xrfang at gmail.com
Sat Dec 29 06:28:50 CET 2012


Please see attached log file I copied from the assembler window.  I am yet to test this on windows.

Thanks,
Shannon

在 六, 12月 29, 2012 at 1:26 下午,leledumbo <leledumbo_cool at yahoo.co.id> 写道:
> 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. 

-- 
_______________________________________________ 
Lazarus mailing list 
Lazarus at lists.lazarus.freepascal.org 
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121229/ab78c148/attachment-0003.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debug.txt
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121229/ab78c148/attachment-0003.txt>


More information about the Lazarus mailing list