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: Processes
Chapter 7 - Segment Manager / Segment Manager Reference
Routine /


UnloadSeg

You can unload a segment by calling the UnloadSeg procedure.

PROCEDURE UnloadSeg (routineAddr: Ptr);
routineAddr
The address of any externally referenced routine in the segment to unload.
DESCRIPTION
The UnloadSeg procedure unloads a segment, making its storage relocatable and purgeable. You specify which segment to unload by passing the address of any externally referenced routine in that segment. The segment won't actually be purged until the memory it occupies is needed. If the segment is purged, the Segment Manager reloads it the next time one of the routines in it is called.

Note
The UnloadSeg procedure works only if called from outside the segment to be unloaded. ·


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUN 1996