[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: tolua, delete(), and garbage collection
- From: "Fabian Lemke" <lemkef@...>
- Date: Sat, 20 Oct 2001 23:28:25 -0500
I'm working on a project, and have used tolua to make bindings for several
classes. I'm having a slight problem though. After a time, when the
garbage collection happens, an illegal operation happens.
I used tolua to wrap something similar to the following:
If, in lua, I do the following:
pos = GetPos()
then it works fine, but with no "delete", it bombs.
It would be a bit easier if it was automatic, though it's usable with the
delete call. I'm using 4.0, and 4.0a for tolua.