On 2010-07-12 05:03:06 +0200, Petr said:

Ok, so I now know how to explicitly free memory allocated to the GC heap. Now the question is, should we have the usual C* c = new C(), and I wanted to allocate it to unmanaged memory(just like it would in C++) and then at some point call the destructor on it and free the memory, outside of the GC. How would I do that?

Yes, that's something I need to, because I need to allocate memory from a special pool, the GC doesn't know about. And I need to handle freeing of such a memory myself because it's persistent and surviving application start-overs.

--
Robert M. Münch
http://www.robertmuench.de

Reply via email to