Solved

TComponentList Problem

Posted on 2003-12-06
5
396 Views
Last Modified: 2010-04-03
TComponentList Problem

How to put in TComponentList more components than TComponentList max value ?

I succeeded to put in TComponentList about 148291876 components.

After that application showed me an error - List capacity out of bounds (148291876).

Thanks.
0
Comment
Question by:sasabistrovic
  • 2
  • 2
5 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9888924
who needs so much components?
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 9890151
Not possible....
TcomponentList inherits from TList and the List property is an array [0..MaxListSIze-1] of pointer where MaxListSize = MaxInt div 16 and where MaxInt = High(Integer) -> (2^32)-1
So to have a larger TComponentList capacity you must create a TList descendent overriding its Capacity property using a larger constant (for example High(Int64)) and adding all needed properties stored in the hierarchy form Tlist to TComponentList (hard job guy?)...

Just for curiosity: can you answer meikl question? :)

F68 ;-)

0
 

Author Comment

by:sasabistrovic
ID: 9891543
I want to put in TComponentList 500 (or more) milion forms and on form 810 tabsheets (or more) + 300 components (or more) per tabsheet.

Some problems for organization.

Thanks.
0
 

Author Comment

by:sasabistrovic
ID: 9891551
As limit I need about 1.e+100 maximal components to put in TComponentList.

Thanks.
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
ID: 9891610
the sense is really unclear,
which user handles tons of components

but you could organize it like

TList
|
- TComponentList
|
- TComponentList
|
- TComponentList
|
- TComponentList
|
- TComponentList
...

so you have
((2^32)-1)^(2^32)-1
possible entries

meikl ;-)




0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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