C
cmrchs
Hi,
how do you mark an object for garbage collection in C++.NET 2005 ?
MyDbClass^ obj = gcnew MyDbClass();
// Release the object
obj = 0; --> COMPILER ERROR
obj = nullptr; // nope : this does not mark it for garbage
// collection (see help)
so ... how ?
thanks
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
how do you mark an object for garbage collection in C++.NET 2005 ?
MyDbClass^ obj = gcnew MyDbClass();
// Release the object
obj = 0; --> COMPILER ERROR
obj = nullptr; // nope : this does not mark it for garbage
// collection (see help)
so ... how ?
thanks
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...