473,804 Members | 4,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WinDbg and XmlText objects

I have a memory problem that keeps causing server resets, so I'm using
WinDbg to figure out what the problem is.

When I look at the heap, WinDbg tells me that there are over one
million XmlText objects, each taking up 20 bytes.

If I do a memory view of one of them, I get this:

10017c58 7c bb 08 16 fc 7b 01 10 58 7c 01 10 84 7b 01 10 00 00 00 00

How do I get the Value property from this?

Thanks,

Jeff Ross

Nov 19 '05 #1
1 2526
Hi Jeff:

Here is how I would get to the value:
0:021> .load E:\Program Files\Debugging Tools for Windows\clr10\s os
0:021> !EEVersion
Loaded Son of Strike data table version 5 from
"E:\WIN2003\Mic rosoft.NET\Fram ework\v1.1.4322 \mscorwks.dll"
1.1.4322.2300 retail
Workstation build

// So far I've just loaded the SOS extension DLL.

0:021> !name2ee System.Xml.dll System.Xml.XmlT ext
--------------------------------------
MethodTable: 01e7bf84
EEClass: 01e66894
Name: System.Xml.XmlT ext

// This gives me the MethodTable for XmlText, I can use the
// MT to scan the heap for all instances of XmlText:

0:021> !dumpheap -mt 01e7bf84
Address MT Size Gen
0256e524 01e7bf84 20 2 System.Xml.XmlT ext
0256e59c 01e7bf84 20 2 System.Xml.XmlT ext
total 2 objects
Statistics:
MT Count TotalSize Class Name
1e7bf84 2 40 System.Xml.XmlT ext
Total 2 objects

// The formatting on this post might not be the best, but you can
// see above I have two XmlText objects on the heap, so let's
// take a look at the first one:

0:021> !dumpobj 0256e524
Name: System.Xml.XmlT ext
MethodTable 0x01e7bf84
EEClass 0x01e66894
Size 20(0x14) bytes
mdToken: 0200008a (Unknown Module)
FieldDesc*: 00000000
MT Field Offset Type Attr Value
Name
01e7631c 4000350 4 CLASS instance 0256e3fc
parentNode
01e7752c 4000372 8 CLASS instance 0256e538
next
01e7ab94 4000373 c CLASS instance 02166ba8
data

// First thing to notice is that all XmlText objects have a
// size of 20 bytes because they include three object references
// in thier instance data.
//
// The third field (data) is the one you want to look at, so let's
// DumpObject again:

0:021> !dumpobj 02166ba8
Name: System.String
MethodTable 0x79b94638
EEClass 0x79b94984
Size 92(0x5c) bytes
mdToken: 0200000f (Unknown Module)
String: This is the text of the root element
FieldDesc*: 79b949e8
.....

// So the first XmlText object contained a reference to a string, the
// string takes up 92 bytes on the heap and the text of the string is
// "This is the text of the root element".
You might also want to check out CLRProfiler before getting into this
level of detail....

--
Scott
http://www.OdeToCode.com/blogs/scott/
On 31 May 2005 15:21:02 -0700, "thejeffros s" <th*********@gm ail.com>
wrote:
I have a memory problem that keeps causing server resets, so I'm using
WinDbg to figure out what the problem is.

When I look at the heap, WinDbg tells me that there are over one
million XmlText objects, each taking up 20 bytes.

If I do a memory view of one of them, I get this:

10017c58 7c bb 08 16 fc 7b 01 10 58 7c 01 10 84 7b 01 10 00 00 00 00

How do I get the Value property from this?

Thanks,

Jeff Ross


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
7998
by: mich | last post by:
Hi I am trying to use Windbg with SOS.dll on VS 2003 by following the article "SOS:It's Not Just an ABBA Song Anymore" at http://msdn.microsoft.com/msdnmag/issues/03/06/Bugslaye I tried the ".load sos" and the command extension of SOS comes up when typing "!help". I assumed that SOS was loaded; however when issuing the command "!Threads". I got the following response "No valid SOS data table found" How can I solve this problem.
0
2614
by: Patrick Matusz | last post by:
How can I create from VB a minidump of my application at runtime for the WinDbg Application from MS? We need this because our application breaks sometime at any state and the stacktrace only shows needless entries! Can anybody help me? I would be happy if you have an example for me too (if possible in VB or C#)! Thanks a lot! Best regards Patrick
2
2851
by: Michel | last post by:
Hi there, I have an enum field that I serialize: public ParameterDirection Direction = ParameterDirection.Out; The enum looks like this: public enum ParameterDirection { In, Out, Both };
2
4118
by: Anirudh | last post by:
Hi, i wanted to know if there is any way to convert an object to XMlText to XMLElement. Thanks in advance.
0
1483
by: Andrew Burgher | last post by:
Feeding the following .xsd into the XsdObjectGen (v1.4.2.0) tool produces an invalid attribute: with DataType="System.String". Has anybody seen this behaviour before? Is this a bug in XsdObjectGen? or a problem with the input schema? I'm trying to avoid hacking the generated code... In: <?xml version = "1.0" encoding = "UTF-8"?> <xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
2536
by: Itjalve | last post by:
I have a heap problem in my com exe server. When i use windbg as the compiler in application verifier is windbg started and i can press 'g' and the server is running unitil i get the exception. When i'm using VC.net i get an excpetion in the client which starts the server! I have not added the client to appl verifier, so how come that VC is launched with the client.exe? And is it possible to load symbols after VC has started, i.e. like...
2
1756
by: junk | last post by:
This seems something that should be easy and not uncommon... but hours of searching have yielded nothing! I am using XmlSerializer to map some XML (not defined by me) into some class objects (defined by me). And it is working great for most cases. Just have one more to handle... One of the leaf nodes of the tree I build is "ci"... typically looks like this:
1
2870
by: conckrish | last post by:
Hi All, Can anyone tell me how to give the input(object address) to !objsize <address> command in WinDbg .. I have a list of object addresses in a file which is stored in local drive.. How to give this address to input of !objsize <addr> command in WinDbg ??? and also how to redirect the output of !objsize command to a file... Is there any scipt available in Windbg to do this task??? Plz help me....
2
64914
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hello, guys, I could not find WinDbg.exe in my machine, although I installed .net 2005. I seached ms download center with WinDbg keyword, but no luck. Anyone knows which exact web page to download? Thanks.
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.