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
Solved

TComponentList Problem

Posted on 2003-12-06
5
397 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 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