Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: Pick list w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 1059 of 1118
Post > Topic >>

Re: Pick list with size > 64K

by Marco van de Voort <marcov@[EMAIL PROTECTED] > Oct 25, 2007 at 07:45 AM

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.
 




 6 Posts in Topic:
Pick list with size > 64K
eljainc <eljainc@[EMAI  2007-10-24 16:42:55 
Re: Pick list with size > 64K
Marco van de Voort <ma  2007-10-25 07:45:08 
Re: Pick list with size > 64K
"Jason Burgon"   2007-10-25 18:02:51 
Re: Pick list with size > 64K
"Dr Engelbert Buxbau  2007-10-29 09:39:04 
Re: Pick list with size > 64K
Marco van de Voort <ma  2007-10-29 15:47:00 
Re: Pick list with size > 64K
Jim Leonard <MobyGamer  2007-10-29 11:33:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:17:32 CDT 2008.