On 2007-10-24, eljainc <eljainc@[EMAIL PROTECTED]
> wrote:
> I have run into a problem.
>
> I have a function in a program that will show a list, and allow the
> user to pick a number from it. The numbers run sequentially, starting
> at 1, 2, 3...
>
> Each item in the list is a string and has a length of 5 (so 6 bytes
> per item). That means that a 64K array will hold approximately 10,921
> items. I want to be able to have over 20,000 items in a similar type
> of list. Clearly, this won't work.
>
> What are some other ways of having a list with thousands of items?
> Are there any list libraries that allow for more than 64K of data?
1) Use Free Pascal. The 64-bit version should allow arrays that can be at
least 2GB.
2) there are lots of ways described in SWAG. e.g. allocating large chunks
and manually creating the pointers to each item (more array like), or
using
a pointer list based approach etc.


|