Using the Long and Short Heap Together

Product Version(s): 3.20
Operating System:   MS-DOS
Flags: ENDUSER | TAR52789
Last Modified: 23-FEB-1988    ArticleIdent: Q11218

Question:
   Is there any reason why the long heap and the short heap cannot be
used together? I cannot find any reference to this in our manuals. The
Convergent Technology Pascal compiler which is our Pascal only differs
in one place when referring to the heap. It says that you cannot mix
the two because the short heap requires contiguous memory and using
the long heap will fragment memory causing the machine to crash. Is
this true? I thought the short heap was constrained to the default
data segment and the long heap took you out into the rest of memory.

Response:
   There is no reason why you can't use both the long and short heaps
with Microsoft DOS Pascal. The compiler itself uses both of them.
   The Convergent Technology version of the compiler has a different
heap management system, and that is why it gives that warning.
