Important: The information in this document is obsolete and should not be used for new development.
LDispose
You can use theLDispose
procedure 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
TheLDispose
procedure releases all memory allocated by the List Manager in creating a list. First,LDispose
issues a close request to the list definition procedure and calls the Control Manager procedureDisposeControl
for the list's scroll bars (if any).LDispose
then uses the Memory Manager to free the memory referenced by the cells field, then disposes of the list record itself.Because
LDispose
disposes 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
LDispose
procedure does not dispose of any memory associated with a list that the List Manager has not allocated. In particular,LDispose
does not dispose of any memory referenced by theuserHandle
field of the list record. Your application is responsible for deallocating any memory it has allocated through theuserHandle
field before callingLDispose
.SPECIAL CONSIDERATIONS
You should not call theLDispose
procedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLDispose
procedure are
Trap macro Selector _Pack0 $0028