From: klaas.holwerda <kho...@xs...> - 2006-02-21 23:40:30
|
Hi John, Here i put a wxCanLua which has the smart pointerlist as i suggested. I works oke. In the top of the cansim.cpp its MyFrame::MyFrame you can how to use it. http://www.xs4all.nl/~kholwerd/tmp/wxLua2.zip The idea is that the object created in lua script are added to such a list. And for instance wxlCanObj will be stored in such a list too. Next it does not matter who deletes the lists/smartpointers first, the last one will simply delete the wxObject derived objects which we wanted to delete save. I can make wxlCanLua so that it uses this list already, but that would really make sence if the m_pTrackedList would be of this type. regards, Klaas klaas.holwerda wrote: > > > Shall i prepare something like the above, next you can choose ;-) > |