[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Custom memory allocations
- From: Peter Cawley <lua@...>
- Date: Wed, 28 Sep 2011 20:43:17 +0100
On Wed, Sep 28, 2011 at 8:38 PM, madrenegade <madrenegade@gmx.de> wrote:
> I am using Lua in my game engine and want to use my own memory allocator.
> The problem is that Lua seems to call the allocation function with pointers
> that are not managed by my own memory manager.
Are you setting the allocator at state creation time with lua_newstate
or at some point later with lua_setallocf? If the latter, then any
allocations done with the previous allocator will become the
responsibility of the new allocator.