Thanks, Jochen. The next question:
The derivation chain for ValueClass is:
System::Object
System::ValueType
ValueClass
Why objects derived from System::ValueType (_indirectly_ from
System::Object) are always allocated on stack, whereas objects derived
_directly_ from System::Object are always allocated on CLR heap? This means
if a value object calls a method inherited from System::Object but doesn't
override it, then the object needs to be boxed before the call can be made.
Is this just how it is designed?
Simon
"Jochen Kalmbach" <no********************@holzma.de> wrote in message
news:Xn**********************************@207.46.2 48.16...
Simon Cheng wrote:
__value class ValueClass {...};
For more info see: __value Classes
http://msdn.microsoft.com/library/en-
us/vcmxspec/html/vcManagedExtensionsSpec_5.asp
--
Greetings
Jochen
Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Do you need daily reports from your server?
http://sourceforge.net/projects/srvreport/