[Mono-dev] Is it safe to save the MonoObject* pointer and use it latter?
niluzhou1984 at foxmail.com
Tue Apr 10 06:46:13 UTC 2018
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list