[comp.lang.pascal] was...structure to large

ZCCBJSB%EB0UB011.BITNET@cunyvm.cuny.edu (Josep Sau B.) (04/11/91)

<brpleshek@miavx2.ham.muohio.edu> asks for help for:

>...
>Now My problem is that I have so much declared that TP6.0 gives
>me a structure too large error (#22 Used more than 65520 bytes).
>...
>Will the Memory Allocation Size Command help?
>Will this allow me to use more memory???
>...
>I've never used TP before.


In TP you cannot allocate a single structure bigger than
about 64 K. But you can allocate explicitely blocks as big
as that size in the heap, with NEW or GETMEM, and then
construct some procedures to interface these blocks to other
modules so that they see them as a unique huge structure.

Of course, you are still limited by DOS conventional RAM
available (under 640 K). To access EMS or XMS you will need
other tricks.
For example, in TRICKLE server, in directory <MSDOS.TURBOPAS>
there is a PD package called TP6XMS.ZIP that includes a unit
to access XMS.


--Josep Sau B.

'...and he amazed with the marvels that are in the world,
    and he asked about things he did not understand,
    and he taught about things he knew.'
 Raimundus Lulius - _Llibre_de_Meravelles_