[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: issue following array example in pil chapter 28.2
- From: David Rio <driodeiros@...>
- Date: Sat, 18 Feb 2012 09:59:24 -0500
Thanks for the quick reply.
The c code: http://is04607.com/tmp/ldrdlib.c.txt
The lua code that uses the previous library: http://is04607.com/tmp/play.c.lua
To compile the array lib: http://is04607.com:public_html/tmp/compile.sh.txt
On Sat, Feb 18, 2012 at 07:18, Martin Guy <firstname.lastname@example.org> wrote:
> On 18 February 2012 03:05, Sam Roberts <email@example.com> wrote:
>> On Fri, Feb 17, 2012 at 5:44 PM, David Rio <firstname.lastname@example.org> wrote:
>>> luaL_newmetatable(L, "LuaBook.array"); // in luaopen_array()
>>> I get an error from malloc because it is trying to free memory that has
>>> not been allocated:
>> Something is broken, you should post more code.
> Specifically, can you post a complete code example that reproduces the
> problem whe you run it?
> I don't feel like typinge in all of Chapter 28 myself to see whether I
> can reproduce your problem