[Lazarus] SEGFAULT: difference between pointer and dynarray?
xrfang
xrfang at gmail.com
Sat Dec 29 08:16:08 CET 2012
PluaL_Reg is defined by lua52.pas. In the email I omitted irrelevant code, but full source is attached in the first email.
在 六, 12月 29, 2012 at 3:13 下午,Flávio Etrusco <flavio.etrusco at gmail.com> 写道:
Your code sample doesn't have a declaration for PluaL_Reg (and you
don't use the TluaLReg type). Was it a simple copy'n'paste error or is
it declared by the Lua wrapper?
On Sat, Dec 29, 2012 at 4:00 AM, xrfang wrote:
> Sorry, we are talking about same thing. In my program I am using dynamic
> array, NOT static, but the assembly is same. In leledumbo's example, the
> assembly is differnt.
>
> 在 六, 12月 29, 2012 at 2:55 下午,Hans-Peter Diettrich 写道:
>
> leledumbo schrieb:
>>> The Assembler shows that @lib and @lib[0] are exactly same thing.
>
> That's true for static arrays.
>
>> The following program shows that they are NOT the same
>
> That's true for dynamic (managed) arrays.
>
> You're talking about different array types.
>
> DoDi
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
_______________________________________________
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/027babf3/attachment-0003.html>
More information about the Lazarus
mailing list