?
Solved

Listview occupies so much memory

Posted on 2002-07-02
3
Medium Priority
?
199 Views
Last Modified: 2010-04-04
I have one application in which includes 1 listbox and 3 listview

listbox includes 3000 items
listview #1 includes 600 items

listview #2,3 are dynamically added.

When the amount of items in listview #2,3 is over 600,

My application is always down.

Does listview occupy so much memory?

Can any one help me
0
Comment
Question by:wangzheng
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7126017
try a virtual listview
0
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 7126338
0
 
LVL 7

Accepted Solution

by:
Cynna earned 300 total points
ID: 7127475
In addition (if you insist on staying with sluggish ListView) you might try (combination of) these tricks:

1. Set BeginUpdate when updating list:

ListView1.Items.BeginUpdate;
  // ... add items to the list...
ListView1.Items.EndUpdate;


2. Set the ViewStyle to vsList when adding items. When finished, set it back to your style.

3. Set SortType to stNone before adding items.

4. Predefine list max size, using AllocBy (see help under LV properties)




0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month13 days, 2 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question