Protecting memory

"Colin GILLE / congelli501" <[email protected]> Wed, 30 Nov 2011 12:39:45 +0100
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <CADT9g3ZbxduE+wU22bS8U4rtUvKcY2+yJQioiyh1q4borRpWqg@mail.gmail.com>
Hi,

I'm new to this mailing list and quite new to luabind too.
I'm creating a 2D game engine with lua scripting and I wich to protect the
memory (against segmentation faults).
Some of my functions return pointers to objects, and these objects can be
deleted later by the engine.
When the user uses a pointer, I would like to check if this pointer is
still valid before using it in my C++ code.
I can easily do that if the pointer in a function argument but I don't know
how to that when the user use the member of the object.

What is the good way to do it with luabind ?

Thanks in advance !

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user