[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: integration with C. Segfault whenever I do anything outside of my lua_state initializer function.
- From: Max <maxxedout@...>
- Date: Wed, 16 Sep 2009 08:31:47 -0700
On Wed, 2009-09-16 at 13:18 -0300, Luiz Henrique de Figueiredo wrote:
> > Actually if you check that forum post you'll see I changed all the names
> > of the parameters and local variables to luaVM_local, and it didn't fix
> > anything. That version of the code (different pastebin) is what I sent
> > out to the mailing-list.
>
> Check my second reply there.
>
> > Since I'm passing everything by reference the changes ought to be
> > applied globally, right?
>
> You're not passing a pointer to the pointer to the Lua state, just a
> pointer to the Lua state. Check your C...
Oh, whoa. It hadn't occurred to me that the value of the pointer itself
might change.
It works now, THANKS!!!