Say that I do something like this on a Win XP 32bit machine in Visual Studio 03/05:
Code:MyClass object1 = new MyClass();
MyClass object2 = object1;
how much memory does object2 use? 32bit? Or does it hold RTTI info and more too?
Thanks
- ØØ -
Printable View
Say that I do something like this on a Win XP 32bit machine in Visual Studio 03/05:
Code:MyClass object1 = new MyClass();
MyClass object2 = object1;
how much memory does object2 use? 32bit? Or does it hold RTTI info and more too?
Thanks
- ØØ -
I am not sure if I belive in it, but this is what I have found so far:
http://www.developerfusion.co.uk/show/4705/
Quote:
(On the 32-bit version of .NET, for instance, a reference type variable's slot is always just 4 bytes.)
- ØØ -
as the reference is a pointer to the address of the object.. it should be 32-bit for 32-bit platforms.
So what makes it type safe? Isn't there any RTTI info stored? How does it know it is of type MyClass, and not an other type of pointer?
- ØØ -