Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Routines / Creating and Managing Regions


To release the memory occupied by a region, use the DisposeRgn procedure.

PROCEDURE DisposeRgn (rgn:\xDDRgnHandle);
A handle to the region to dispose.
The DisposeRgn procedure releases the memory occupied by the region whose handle you pass in the rgn parameter.

Use DisposeRgn only after you're completely through with a region.

The DisposeRgn procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.

Listing 3-8 on page 3-24 and Listing 3-9 on page 3-25 illustrate how to use this procedure.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996