By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,728 Members | 1,103 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,728 IT Pros & Developers. It's quick & easy.

DataSet.ReadXML

P: n/a
I have a small xml document that I bring into my application by reading the
xml file with a dataset:

Dim ds As New DataSet
ds.ReadXml(fileName)
' Do some work with the tables in the dataset
ds.Close()
ds.Dispose()

The data is fine, and I can use the tables in the dataset with no problems.
However, if I put this in a loop I noticed that the memory usage goes up by
about 150KBytes each time the ds.ReadXml method executes. The total size of
the xml file is about 1KByte. My application is a Windows Service that will
hit this 4 to 5 times a hour, so I can't afford any memory growth. The
memory leak (if that is what it is) is a direct result of the ds.ReadXml
method.

Anyone have any ideas?
Thanks for your help.
--
Walt
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Are you using task manager to measure the usage? They are notoriously
buggy.
"Walt" <Wa**@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
I have a small xml document that I bring into my application by reading the
xml file with a dataset:

Dim ds As New DataSet
ds.ReadXml(fileName)
' Do some work with the tables in the dataset
ds.Close()
ds.Dispose()

The data is fine, and I can use the tables in the dataset with no
problems.
However, if I put this in a loop I noticed that the memory usage goes up
by
about 150KBytes each time the ds.ReadXml method executes. The total size
of
the xml file is about 1KByte. My application is a Windows Service that
will
hit this 4 to 5 times a hour, so I can't afford any memory growth. The
memory leak (if that is what it is) is a direct result of the ds.ReadXml
method.

Anyone have any ideas?
Thanks for your help.
--
Walt

Nov 21 '05 #2

P: n/a
Thank you for your response.
Yes, I was. Can you suggest a better alternative?

--
Walt
"W.G. Ryan MVP" wrote:
Are you using task manager to measure the usage? They are notoriously
buggy.
"Walt" <Wa**@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
I have a small xml document that I bring into my application by reading the
xml file with a dataset:

Dim ds As New DataSet
ds.ReadXml(fileName)
' Do some work with the tables in the dataset
ds.Close()
ds.Dispose()

The data is fine, and I can use the tables in the dataset with no
problems.
However, if I put this in a loop I noticed that the memory usage goes up
by
about 150KBytes each time the ds.ReadXml method executes. The total size
of
the xml file is about 1KByte. My application is a Windows Service that
will
hit this 4 to 5 times a hour, so I can't afford any memory growth. The
memory leak (if that is what it is) is a direct result of the ds.ReadXml
method.

Anyone have any ideas?
Thanks for your help.
--
Walt


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.