Board index » delphi » Data segment too large
mrc...@primenet.com (Mike Copeland)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
mrc...@primenet.com (Mike Copeland)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Data segment too largeQuote> I'm coding a database to use in a program and it has lots of arrays of of the FAQs which are mentioned here weekly. However, the most common solution to this problem is to use pointers to allocate and access some (much?) of your data variables. Since you've admitted a lot of "array" usage, I'm pretty sure you'll be needing to learn about and use Pascal pointers. |
vengean
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data segment too large I'm coding a database to use in a program and it has lots of arrays of |
The Scarlet Manu
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data segment too largeQuotevengeance <vengea...@softhome.net> wrote: For a more complete answer, fill in the ellipses (...) below with whatever type var begin Of course there is little point in having arrays of arrays of arrays. It is type begin effectively does the same thing as above, but with less mucking around. -- |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data segment too largeIn article <8a4s9e$uf...@enyo.uwa.edu.au>, The Scarlet Manuka <sa...@maths.uwa.edu.au> wrote: Quote
array can hold only 16000 elements. By making an array of pointer arrays, one can easily hold as much elements as there is memory. This is especially relevant to BP. Quote>e.g. different point: type Subarray=array[...,...] of ... BigArray=array[...] or Subarray; Var myarray:BigArray; Begin Then one can break the 64K barrier. Note also that one has to allocate. Now lets say it was 100x100x100xinteger. In this case it would take two If the array is one-dimensional, then breaking it is harder. Basically Osmo |
Alexander Sheverdae
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data segment too largevengeance <vengea...@softhome.net> wrote in article <8a48bo$n7...@news.mandic.com.br>... Quote> I'm coding a database to use in a program and it has lots of arrays of You can use dinamic variables that stored in heap, use NEW or GETMEM to allocate them, and refer with pointers, like this: ********** BEFORE Note that each SEPARATE array (of array) anyway can't exceed 64k (there are By the way, "array[1..20] of array [1..30] of integer" (lots of arrays of Sandman4 |