Re: [wxlua-users] Referencing objects

2013-11-18 Thread Andreas Falkenhahn
On 17.11.2013 at 19:37 John Labenski wrote: > On Sun, Nov 17, 2013 at 9:21 AM, Andreas Falkenhahn > wrote: > > Hi, > > what's the recommended way to prevent objects from being garbage collected? > For example, I create a wxImageList and pass it to > wxNotebook::SetImageList(). > As wxNot

Re: [wxlua-users] Referencing objects

2013-11-17 Thread John Labenski
On Sun, Nov 17, 2013 at 9:21 AM, Andreas Falkenhahn wrote: > Hi, > > what's the recommended way to prevent objects from being garbage collected? > For example, I create a wxImageList and pass it to > wxNotebook::SetImageList(). > As wxNotebook::SetImageList() doesn't take ownership of the list it

[wxlua-users] Referencing objects

2013-11-17 Thread Andreas Falkenhahn
Hi, what's the recommended way to prevent objects from being garbage collected? For example, I create a wxImageList and pass it to wxNotebook::SetImageList(). As wxNotebook::SetImageList() doesn't take ownership of the list it could happen that the garbage collector kills the wxImageList that I pa