I don't see a way to walk all MethodTables in the current code. The second suggestion in my reply offers a way of changing MethodTables so you can walk them:
"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." ie. grow the MethodTable class by including "previous" and "next" pointers and linking the MethodTable into the doubly-linked list when it is allocated. 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: Friday, December 12, 2003 1:20 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET-ROTOR] Finding MethodTables Hi, thank you for your answer. I already knew that the GC locates all MethodTables referenced from the objects living in the GCHeap. But what I need is to locate all the MethodTables without having to traverse all the GCHeap. Thank you in advance. =================================== 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