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

Vincent Povirk madewokherd at gmail.com
Tue Apr 10 15:23:03 UTC 2018


If you have the MonoObject pointer stored in a stack variable, and
assuming the Mono runtime is aware of your thread, then yes it is
safe. If the pointer is in static or heap-allocated memory, then the
object may be moved or freed.


More information about the Mono-devel-list mailing list