sasabistrovic
asked on
TComponentList Problem
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.
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.
who needs so much components?
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 ;-)
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 ;-)
ASKER
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.
Some problems for organization.
Thanks.
ASKER
As limit I need about 1.e+100 maximal components to put in TComponentList.
Thanks.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.