Tuesday, October 12, 2010

C + + / CLI object of speculation recorded the Object Layout

C + + / CLI is a relatively pure C + +, support the creation of managed reference object, managed object to allocate memory from the virtual machine and management, the programmer can no longer worry about the memory leak problem. In fact, that white is the equivalent of their own to create a memory pool, and the virtual machine actually do so.

In the CLI, all classes derived from Object, including the value of this int. So the internal structure of how the Object like? Vm code through the research, you can see in general is structured as follows:

Users Save handle to a managed object, in fact, can be seen as a pointer to a Object pointer, which contains a MethodTable in Object pointer, this type of information preserved MethodTable and some function, which is like the same virtual function pointer. Many of the operations are accomplished through the pointer, such as Allocate (), such as Box (), UnBox () and so on. Followed behind in MethodTable is the real data.

This MethodTable is very core vm inside a class, it can be done by a lot of action.

Recommended links:

New Computer Education

A Fully CG Production Process - The First Draft (the Original Painting)

Dealers should not be fishing in 10

change divx to sony nwz-s738f Extension

Top Music Composers

To work without selection, the problem You thought about it?

RENJIAO She Coke Man: step by step

YouTube to WMV

Skyworth the secret of surviving

WMV to Zune

Ministry of Information Industry, Dalian today on the AVS will determine the acceptance of IPTV comm

Storage Inventory And BARCODING

Alliance With The Merger As

Liu Ren case throughout the second session Documentary

Ad Blockers Infomation

QuickTime to MPG

1 comment:

  1. Well written article. Thanks for sharing these types of information with us. I discussed the same with my friends also. You mentioned some reference link also.It helps us a lot.
    electronic signature pad