Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to enumerate .net hashtable

61 views
Skip to first unread message

JR

unread,
Jul 25, 2006, 8:00:02 PM7/25/06
to
i have a lot of httpconfiguration objects in my asp.net cache that are
over .5 megs. I am attempting to see whats in them. I use !do
(dumpobject command) and i eventually get to the hashtable/bucket
object. Does any oen know how to enumerate the values contained in the
hashtable? I can get down to the 'bucket' object but it just has a
count and no vluaes i can find. This is where im at

Name: System.Collections.Hashtable
MethodTable 0x79bab93c
EEClass 0x79baba7c
Size 52(0x34) bytes
GC Generation: 2
mdToken: 0x02000118
(c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll)
FieldDesc*: 0x79babae0
MT Field Offset Type Attr
Value Name
0x79bab93c 0x400039e 0x4 CLASS instance
0x1e5cd4a8 buckets
0x79bab93c 0x400039f 0x1c System.Int32 instance 11 count
0x79bab93c 0x40003a0 0x20 System.Int32 instance 4
occupancy
0x79bab93c 0x40003a1 0x24 System.Int32 instance 16
loadsize
0x79bab93c 0x40003a2 0x28 System.Single instance 0.720000
loadFactor
0x79bab93c 0x40003a3 0x2c System.Int32 instance 12
version
0x79bab93c 0x40003a4 0x8 CLASS instance
0x00000000 keys
0x79bab93c 0x40003a5 0xc CLASS instance
0x00000000 values
0x79bab93c 0x40003a6 0x10 CLASS instance
0x00000000 _hcp
0x79bab93c 0x40003a7 0x14 CLASS instance
0x00000000 _comparer
0x79bab93c 0x40003a8 0x18 CLASS instance
0x00000000 m_siInfo
0x79bab93c 0x400039d 0 CLASS shared static
primes

here is my hash table, the only thing with an address is the 'buckets'


0:000> !do 0x1e5cd4a8
Name: System.Collections.Hashtable/bucket[]
MethodTable 0x01a934a8
EEClass 0x01a93424
Size 288(0x120) bytes
GC Generation: 2
Array: Rank 1, Type VALUETYPE
Element Type: System.Collections.Hashtable/bucket
Content: 23 items

And here i am :-) - i need to figure out what values are in these
hashtables. Is this an easy command i'm missing or something?


as always, thanks in advance for any input.

JR

unread,
Jul 26, 2006, 11:44:27 AM7/26/06
to
I got it :-)


!dc (dumpcollection) command works to dump members of a hashtable

0 new messages