Important: The information in this document is obsolete and should not be used for new development.
LDispose
You can use theLDisposeprocedure to dispose of the memory associated with a list that you no longer need.
PROCEDURE LDispose (lHandle: ListHandle);
lHandle- The list to be disposed of.
DESCRIPTION
TheLDisposeprocedure releases all memory allocated by the List Manager in creating a list. First,LDisposeissues a close request to the list definition procedure and calls the Control Manager procedureDisposeControlfor the list's scroll bars (if any).LDisposethen uses the Memory Manager to free the memory referenced by the cells field, then disposes of the list record itself.Because
LDisposedisposes of data associated with cells in your list, there is no need to clear the data from list cells or to delete individual rows and columns before callingLDispose.The
LDisposeprocedure does not dispose of any memory associated with a list that the List Manager has not allocated. In particular,LDisposedoes not dispose of any memory referenced by theuserHandlefield of the list record. Your application is responsible for deallocating any memory it has allocated through theuserHandlefield before callingLDispose.SPECIAL CONSIDERATIONS
You should not call theLDisposeprocedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLDisposeprocedure are
Trap macro Selector _Pack0 $0028