savithri@newton.physics.purdue.edu (Savithri Sivaramakrishnan) (06/02/90)
Is it possible to allocate memory outside of the heap? I am programming using Turbo Pascal version 5.5. Thanks in advance for any suggestions. Savithri
NORM%IONAACAD.BITNET@cunyvm.cuny.edu ( Norman Walsh) (06/02/90)
>Is it possible to allocate memory outside of the heap? ... ing >Savithri That depends. If you have used the {$M directive to reduce the amount of heap that Turbo uses then you can. Otherwise, Turbo will use ALL of the remaining memory for it's heap. Of course, even if you use the {$M directive, there is still a chance that there won't be any memory left outside of Turbo's heap. To use the memory outside of the heap you must use the DOS memory allocation calls. They are accessed with the Regs structure using the MsDos() procedure. If you need any help writing the routines to do it, or you would like more explanation, let me know... ndw