Board index » delphi » 64k Data segment limit

64k Data segment limit

Hello,

I have a major problem with TP7; I need to have more than 64k
data (all of it declared with "const"); does anyone know
if there is any way to allocate a

const
blaha : array[1..x] of byte = (x,x..x);

on the heap directly or if I can bypass the 64k Data segment
limit in any way?

Thanx,

- Sam

-- Remove "*nospam*" from my E-mail address when replying.

 

Re:64k Data segment limit


Quote
fade wrote:

> Hello,

> I have a major problem with TP7; I need to have more than 64k
> data (all of it declared with "const"); does anyone know
> if there is any way to allocate a

> const
> blaha : array[1..x] of byte = (x,x..x);

> on the heap directly or if I can bypass the 64k Data segment
> limit in any way?

> Thanx,

> - Sam

> -- Remove "*nospam*" from my E-mail address when replying.

I think you should learn to do Protected mode programming or
flat model stuff, or learn how to use XMS or Disk Swap files.

Re:64k Data segment limit


Quote
fade wrote:
> if there is any way to allocate a

> const
> blaha : array[1..x] of byte = (x,x..x);

> on the heap directly or if I can bypass the 64k Data segment
> limit in any way?

You can use dynamic data structures to do this. Go into the turbopas
subdirectory at garbo.uwasa.fi and ftp the faq (tsfaqpas) and read
that carefully. It will introduce you to the background of this
technique. Then download the swag library from the same place and you
will find a worked out example by yours truly in the "memory" section.

Re:64k Data segment limit


In article <[email protected]>, Dr E. Buxbaum <[email protected]> wrote:
:You can use dynamic data structures to do this. Go into the turbopas
:subdirectory at garbo.uwasa.fi and ftp the faq (tsfaqpas) and read
:that carefully. It will introduce you to the background of this
:technique. Then download the swag library from the same place and you
:will find a worked out example by yours truly in the "memory" section.

 117975 Jul 12 1997 ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip
 tsfaqp.zip Common Turbo Pascal Questions and Timo's answers

 327448 Mar 6 1997 ftp://garbo.uwasa.fi/pc/turbopas/swag.zip
 swag.zip SWAG Reader + Information Files, SourceWare Archival Group

 629664 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swaga-c.zip
 swaga-c.zip SWAG Complete TP Code Package 1/5, all data upto 2/97

 2181787 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swagd-f.zip
 swagd-f.zip SWAG Complete TP Code Package 2/5, all data upto 2/97

 2119743 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swagg-m.zip
 swagg-m.zip SWAG Complete TP Code Package 3/5, all data upto 2/97

 593247 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swagn-r.zip
 swagn-r.zip SWAG Complete TP Code Package 4/5, all data upto 2/97

 1592647 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swags-z.zip
 swags-z.zip SWAG Complete TP Code Package 5/5, all data upto 2/97

 1300283 May 31 1997 ftp://garbo.uwasa.fi/pc/turbopas/swag9705.zip
 swag9705.zip SWAG: A huge library of PD Turbo Pascal code, 5/97 update

 1356977 Aug 31 1997 ftp://garbo.uwasa.fi/pc/turbopas/swag9708.zip
 swag9708.zip SWAG: A huge library of PD Turbo Pascal code, 8/97 update

   All the best, Timo

....................................................................
Prof. Timo Salmi   Co-moderator of news:comp.archives.msdos.announce
Moderating at ftp:// & http://garbo.uwasa.fi archives  193.166.120.5
Department of Accounting and Business Finance  ; University of Vaasa
mailto:[email protected] <http://www.uwasa.fi/~ts/>  ; FIN-65101,  Finland

Spam foiling in effect.  My email filter autoresponder will return a
required email password to users not yet in the privileges database.

Other Threads