C
Creativ
I'm still confused with managed and unmanaged
In VS2005, in the same project with /CLR switch on.
in managed.h
ref class ManagedClass
{
}
in unmanaged.h
class UnmanagedClass
{
}
in Main.cpp
{
ManagedClass^ mc = gcnew ManagedClass; // So this is managed
UnmanagedClass umc;
}
My question is with UnmanagedClass umc; // So this creates a unmanaged
object, on the unmanaged heep? Does that mean all unmanged objects
won't be moved around by GC? (I assume yes since they are on unmanaged
heap).
Is there good reading describing this?
In VS2005, in the same project with /CLR switch on.
in managed.h
ref class ManagedClass
{
}
in unmanaged.h
class UnmanagedClass
{
}
in Main.cpp
{
ManagedClass^ mc = gcnew ManagedClass; // So this is managed
UnmanagedClass umc;
}
My question is with UnmanagedClass umc; // So this creates a unmanaged
object, on the unmanaged heep? Does that mean all unmanged objects
won't be moved around by GC? (I assume yes since they are on unmanaged
heap).
Is there good reading describing this?