[Mono-dev] Is it safe to save the MonoObject* pointer and use it latter?

xiaozhu niluzhou1984 at foxmail.com
Tue Apr 10 06:46:13 UTC 2018


hi,all:
        I have a game engine embeded mono,and use the sgen gabage collector.


        I know that sgen gc will move the Managed Object, so the Managed Object's address is not fixed.
        Is it safe to save the MonoObject* pointer and use it latter without pinned?


        MonoObject* managedObj = mono_object_new();
     save the managedObj . and manipulate it latter.




       Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20180410/17760c07/attachment.html>


More information about the Mono-devel-list mailing list