Re: [Mono-dev] What is the best practice for disposing of transient MonoObject in an embedding scenario

2013-06-17 Thread Robert Jordan
On 16.06.2013 13:21, jean-michel.perr...@csiro.au wrote: Hi, I'd like some guidance on how to free memory in an embedded Mono scenario. I 'monkeyed' a few things started from the embedded samples in the mono codebase, but they are limited to g_free calls on UTF8 strings. I think I figured out I

[Mono-dev] What is the best practice for disposing of transient MonoObject in an embedding scenario

2013-06-16 Thread Jean-Michel.Perraud
Hi, I'd like some guidance on how to free memory in an embedded Mono scenario. I 'monkeyed' a few things started from the embedded samples in the mono codebase, but they are limited to g_free calls on UTF8 strings. I think I figured out I needed to use mono_gchandle_new and mono_gchandle_free t