Click to See Complete Forum and Search --> : Garbage Collector


V. Lorenzo
March 18th, 2002, 06:42 AM
Hi.

This question seems to be very simple but...

How can I prevent a managed object from being garbage collected ? I'am creating the object in the method of an unmanaged class and save a reference to it as a normal GCHandle.

GC.KeepAlive does not make the work for me.

Thanks in advance, VictorL