Important: The information in this document is obsolete and should not be used for new development.
DisposeGWorld
Use theDisposeGWorldprocedure to dispose of all the memory allocated for an offscreen graphics world.
PROCEDURE DisposeGWorld (offscreenGWorld: GWorldPtr);
offscreenGWorld- A pointer to an offscreen graphics world.
DESCRIPTION
TheDisposeGWorldprocedure disposes of all the memory allocated for the offscreen graphics world pointed to in theoffscreenGWorldparameter, including its pixel map, color table, pixel image, andGDevicerecord (if one was created). In theoffscreenGWorldparameter, pass the pointer returned to your application by theNewGWorldfunction when you created the offscreen graphics world.Call
DisposeGWorldonly when your application no longer needs the pixel image associated with this offscreen graphics world. If this offscreen graphics world was the current device, the current device is reset to the device stored in the global variableMainDevice.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theDisposeGWorldprocedure are
Trap macro Selector _QDExtensions $00040004