The current garbage collector frequently accesses the MethodTables of all object in the heap. Can you re-use some of that code? ie. clr/src/vm/gcsmp.cpp's Object::GetMethodTable() returns a MethodTable* from an object.
Alternatively, you could store newly-allocated MethodTable objects in a list and traverse that list, though you'd need to be careful about multithreading and removing them from the list at the appropriate time. Barry This posting is provided "AS IS" with no warranties, and confers no rights. -----Original Message----- From: Discussion of the Rotor Shared Source CLI implementation [mailto:[EMAIL PROTECTED] On Behalf Of Jorge Sanchez Sent: Thursday, December 11, 2003 7:27 AM To: [EMAIL PROTECTED] Subject: [DOTNET-ROTOR] Finding MethodTables I'm developing a project working with the current implementation of Rotor GC. I need to know how to access all MethodTable structures. Is there a structure (array or list-like) that I can use, or are all the MethodTables unrelated to each other? Thanks for helping. Answer please. =================================== This list is hosted by DevelopMentor(r) http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com