You can use addGCRoot() function so, you don't need to bother that your object is moved around and your pointer to it is invalidated because object has moved to a different location.
It doesn't 'pins' the object in memory, but tell VM that an object pointer, stored at given memory location should be kept healthy. Also, it makes sure that your object will not be GCed , even if there is no other objects referencing it.
On 28 April 2010 08:30, Ang BeePeng beepeng86@yahoo.com wrote:
Hi,
Can anyone help me with this? It is really important for me. I'm trying to achieve something but clearly I haven't have enough knowledge about it.
Thank you very much in advance.
Ang Beepeng
View this message in context: http://forum.world.st/shared-object-between-main-exe-and-Squeak-dll-tp202318... Sent from the Squeak - Dev mailing list archive at Nabble.com.