How to Allocate a Block of Heap Using NewPtr Toolbox Routine (45426)
The information in this article applies to:
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
This article was previously published under Q45426 SUMMARY
The following applies to Microsoft QuickBASIC Version 1.00 for the
Apple Macintosh.
The Toolbox routines for allocating and releasing heap space are
contained in the Memory Manager. The NewPtr Toolbox function is used
to allocate a block of memory from the heap and to return a pointer to
that block. The pointer then can be used by your program to reference
into that block of memory. When appropriate, the DisposPtr Toolbox
function can be used to release the block the memory, as discussed in
another article in this knowledgebase (query on DisposPtr and
Toolbox).
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | KB45426 |
---|
|