views:

36

answers:

0

I am able remote debug into a process that is running both native and managed code on a VM from my host machine. Also, on the VM I have been using the psscor2 extension with windbg to analyze the .net heaps.

I find my self jumping back and forth between Visual Studio 2008 in my host and WinDbg in the VM while attempting to locate and fix a memory leak. I found that you can load sos inside of the visual studio using the immediate window so I thought I would attempt to use psscor2 in Visual Studio to avoid the hoping back and forth. The psscor2 extension loades successfully in VS however, when I attempt to use the !dumpheap command i get the following error:

The garbage collector data structures are not in a valid state for traversal. It is either in the "plan phase," where objects are being moved around, or we are at the initialization or shutdown of the gc heap. Commands related to displaying, finding or traversing objects as well as gc heap segments may not work properly. !dumpheap and !verifyheap may incorrectly complain of heap consistency errors.

Error requesting GC Heap data

Unable to build snapshot of the garbage collector state

My host is win7 64bit while my VM is Windows Server 2003 32 bit and both are running a version of .net 3.5 (the VM does not have SP1).

Would different versions of the .net framework cause the above error when executing the !DumpHeap command in my situation?

If so is there any way to get around this with out installing SP1 on the VM?