Hi All,
I have a wrapper class like...
MTerrain::MTerrain(String^ in_name, int in_maxSimultaneousTextures)
{
NW_STRING name;
MarshalString(in_name, name);
m_terrain=new NW::Terrain(name, in_maxSimultaneousTextures);
}
MTerrain::~MTerrain()
{
delete m_terrain;
}
But when I use this in C# like...
MTerrain test=new Terrain("test", 8);
test=null;
The destructor is not getting called. Unless I specifically do...
test.Dispose();
test=null;
Why does the destructor not get called immediately on the test=null? Is this a function of the garbage collector?
Thanks
Rael