home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,537 of 2,978   
   Marco van de Voort to eljainc   
   Re: Pick list with size > 64K   
   25 Oct 07 07:45:08   
   
   From: marcov@stack.nl   
      
   On 2007-10-24, eljainc  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.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca