G
Guest
Hi,
I have an unmanaged function which returns an address to an unmanaged
object. It's implemented by native C.
I call this function by p/invoke, get the pointer in C#, and store it in a
class field.
And I use this pointer to store some date in the unmanaged object.
My question is, does gc do anything with this object?
I presume that GC won't take care of it, because it's not in managed heap.
Is it true?
Thanks,
Tomoki
I have an unmanaged function which returns an address to an unmanaged
object. It's implemented by native C.
I call this function by p/invoke, get the pointer in C#, and store it in a
class field.
And I use this pointer to store some date in the unmanaged object.
My question is, does gc do anything with this object?
I presume that GC won't take care of it, because it's not in managed heap.
Is it true?
Thanks,
Tomoki