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 ;-)




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to