Strange .NET garbage collector problem



Hi,

I have a standalone application that reads ~40.000 rows from a database
and put them in a ListView control. After reading the data, my app
allocated ~300 MB memory. And stays this way even after a long period
of time!!! Now, if a minimize the app, the used memory drops to 1 or 2
MB. Maximize the app and it will eat up to 4 MB. The app works
PERFECTLY with or without the 300MB of memory allocated with all the
data scrollable and visible. Why is that?

The method used to populate the list is VERY SIMPLE: read the data from
the resultset one by one and put it in the list in a while loop.

.



Relevant Pages

  • Re: How to purge file cache
    ... What I'm after is an app which does reading, of a file using FSD- hence i'm ... assuming that the file won't be memory-mapped into the memory. ... and do a re-copy would take shorter time as the reading is done via cache... ... >> megs) are cached in the file system. ...
    (microsoft.public.development.device.drivers)
  • Re: Large text file - in memory ( > 60mb)
    ... The file is over 64mb in size, reading it line by line to do a search seems ... that's why I opted to keep the file in memory which might not be the best ... Then I have to show this record found (wich should ... I could create an index but that would complicate the app, ...
    (microsoft.public.dotnet.framework)
  • Re: How to set up a Linux machine that occupies the minimum memory footprint ?
    ... Of course, if you use 8GB of RAM, or more precisely if you ... Are you saying that if I have a 4GB RAM memory, ... Linux will somehow "know" that it doesn't have ... You've said in another message that your app is ...
    (comp.os.linux.setup)
  • Re: How to set up a Linux machine that occupies the minimum memory footprint ?
    ... Of course, if you use 8GB of RAM, or more precisely if you ... Are you saying that if I have a 4GB RAM memory, ... Linux will somehow "know" that it doesn't have ... You've said in another message that your app is ...
    (comp.os.linux.misc)
  • Re: need a thumbnail browser without memory limitations
    ... When you are working with media files, you need to decide how you are going to limit the memory requirements of your app. ... For display pictures, you can take approaches that limit the memory requirements such as minimal caching. ... lets say you need to load the next 10 thumbnails as the user scrolls. ...
    (microsoft.public.vb.general.discussion)

Loading