[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Garbage Collection
- From: "David Burgess" <david@...>
- Date: Wed, 31 Jul 2002 12:34:23 +1000
I now know exactly how the problem manifests.
I don't know the solution.
The problem is that the stmt(cursor) handle is
garbage collected in between fetches. i.e.
while (1) do
row = CUR:Fetch()
if not row then
-- CUR is garbage collected before next fetch
-- during dostuff()
If I use lua_ref to lock the stmt(cursor) then things
are not gc'ed until the program terminates (which is not
good for stmt handles). Any ideas?