473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

LIstView Memory Leak?

Hello,

I posted this to DotNet.Framework.Controls a week ago or so and got no
response, so now I will repost it here to see if anyone here knows anything
about it...

I have an application that displays items in a ListView control that is
running on a Windows 98 SE machine. The machine is well within system
specifications for the .Net Framework. It is a 600 MHz with 128 MB of RAM,
and also has the Resource Meter application installed. The application is
written in VB.Net against the 1.1 version of the framework.

I wrote a simple test app in which the ListView is put into "Detail" view
mode, and populated with 100 rows and 15 columns of data. If the user grabs
the "bar" handle in the middle of the scrollbar on the ListView and
repeatedly drags it up and down, the system resource go down until they drop
below 10%. At that time I receive an error message that states the
following...

Ninety percent or more of your system resources are in use. To free up
system resources, quit any programs that you are not using. If you do
not, your computer may stop responding.

It doesn't seem to be a 98-specific problem, as you can see the memory go
down on my XP machine whenever I do the same test. It is just much more
apparant on the 98 machine because it only has 128 MB of RAM.

Has anyone encountered this problem before? Any help or info would be much
appreciated.

Thank you,
David Miller
Jul 19 '05 #1
2 4702
I don't know anything about a leak in the ListView.
Can you reproduce the symptom in a simple test case?

I just tried this, ran a listview demo on a WinXP machine with 128mb, and
saw no memory leak or memory growth. CPU usage goes up if I scroll rapidly,
but it returns to zero when I stop. and memory usage stays flat.

Are you possibly creating objects as you scroll?

I can send you my test case...
"David Miller" <dm*****@criticaltech.com> wrote in message
news:Oe*************@TK2MSFTNGP11.phx.gbl...
Hello,

I posted this to DotNet.Framework.Controls a week ago or so and got no
response, so now I will repost it here to see if anyone here knows anything about it...

I have an application that displays items in a ListView control that is
running on a Windows 98 SE machine. The machine is well within system
specifications for the .Net Framework. It is a 600 MHz with 128 MB of RAM,
and also has the Resource Meter application installed. The application is
written in VB.Net against the 1.1 version of the framework.

I wrote a simple test app in which the ListView is put into "Detail" view
mode, and populated with 100 rows and 15 columns of data. If the user grabs the "bar" handle in the middle of the scrollbar on the ListView and
repeatedly drags it up and down, the system resource go down until they drop below 10%. At that time I receive an error message that states the
following...

Ninety percent or more of your system resources are in use. To free up
system resources, quit any programs that you are not using. If you do
not, your computer may stop responding.

It doesn't seem to be a 98-specific problem, as you can see the memory go
down on my XP machine whenever I do the same test. It is just much more
apparant on the 98 machine because it only has 128 MB of RAM.

Has anyone encountered this problem before? Any help or info would be much
appreciated.

Thank you,
David Miller

Jul 21 '05 #2
Dino:

First of all, I would like to say thank you for your previous reply.

I not creating any objects as I scroll in my application.

I have attached a simple test app written in VS.Net 2003 that reproduces the
problem. Here is a list of steps that I am following on a Windows 98 SE
machine with 128 MB of RAM...

0. Install resource monitor off of the Win98 CD
1. Open resource monitor.
2. Run the test app.
3. Click on the "Search" button
4. Click and hold down the left mouse button on the scrollbar handle.
5. Rapidly drag the scrollbar handle between its top and bottom limits
repeatedly.

After about 5 to 10 seconds you should get a message from Windows 98 that
says you have less than 10 percent of your system resources left.

-David Miller

"Dino Chiesa [MSFT]" <di****@microsoft.com> wrote in message
news:uz**************@TK2MSFTNGP09.phx.gbl...
I don't know anything about a leak in the ListView.
Can you reproduce the symptom in a simple test case?

I just tried this, ran a listview demo on a WinXP machine with 128mb, and
saw no memory leak or memory growth. CPU usage goes up if I scroll rapidly, but it returns to zero when I stop. and memory usage stays flat.

Are you possibly creating objects as you scroll?

I can send you my test case...
"David Miller" <dm*****@criticaltech.com> wrote in message
news:Oe*************@TK2MSFTNGP11.phx.gbl...
Hello,

I posted this to DotNet.Framework.Controls a week ago or so and got no
response, so now I will repost it here to see if anyone here knows

anything
about it...

I have an application that displays items in a ListView control that is
running on a Windows 98 SE machine. The machine is well within system
specifications for the .Net Framework. It is a 600 MHz with 128 MB of RAM, and also has the Resource Meter application installed. The application is written in VB.Net against the 1.1 version of the framework.

I wrote a simple test app in which the ListView is put into "Detail" view mode, and populated with 100 rows and 15 columns of data. If the user

grabs
the "bar" handle in the middle of the scrollbar on the ListView and
repeatedly drags it up and down, the system resource go down until they

drop
below 10%. At that time I receive an error message that states the
following...

Ninety percent or more of your system resources are in use. To free up system resources, quit any programs that you are not using. If you do
not, your computer may stop responding.

It doesn't seem to be a 98-specific problem, as you can see the memory go down on my XP machine whenever I do the same test. It is just much more
apparant on the 98 machine because it only has 128 MB of RAM.

Has anyone encountered this problem before? Any help or info would be much appreciated.

Thank you,
David Miller


Jul 21 '05 #3

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

Similar topics

8
by: ranjeet.gupta | last post by:
Dear All Is the Root Cause of the Memory corruption is the Memory leak, ?? suppose If in the code there is Memory leak, Do this may lead to the Memory Corruption while executing the program ? ...
17
by: José Joye | last post by:
Hi, I have implemented a Service that is responsible for getting messages from a MS MQ located on a remote machine. I'm getting memory leak from time to time (???). In some situation, it is...
20
by: jeevankodali | last post by:
Hi I have an .Net application which processes thousands of Xml nodes each day and for each node I am using around 30-40 Regex matches to see if they satisfy some conditions are not. These Regex...
0
by: Chris Putnam | last post by:
I am working on an application that includes a feature where a directory is spidered and thumbnails are displayed. I have it pretty much down, but when the bitmaps are loaded from file, memory is...
2
by: David Miller | last post by:
Hello, I posted this to DotNet.Framework.Controls a week ago or so and got no response, so now I will repost it here to see if anyone here knows anything about it... I have an application...
23
by: James | last post by:
The following code will create memory leaks!!! using System; using System.Diagnostics; using System.Data; using System.Data.SqlClient; namespace MemoryLeak
3
by: Jim Land | last post by:
Jack Slocum claims here http://www.jackslocum.com/yui/2006/10/02/3-easy-steps-to-avoid-javascript- memory-leaks/ that "almost every site you visit that uses JavaScript is leaking memory". ...
0
by: njuneardave | last post by:
I am using a listview to hold a bunch of binary data (approx 25 rows and 700 cols). I have a compare function that compares each row's bit at a certain column. i then color the background of each...
22
by: Peter | last post by:
I am using VS2008. I have a Windows Service application which creates Crystal Reports. This is a multi theaded application which can run several reports at one time. My problem - there is a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.