JCL Help:FreeObjectList

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Clears the contents of a TList which contains objects.


Pascal

 procedure FreeObjectList(var List: TList);


Parameters

Parameters Description
var List: TList The list to free.


Description

FreeObjectList clears the contents of the specified list and then frees the list itself. The routine assumes that each item in the list is a TObject descendant and frees these objects before removing them from the list. If the list contains items other than TObject descendants, the result is unpredictable (likely an access violation will occur).


See Also

ClearObjectList


About

Unit

JclSysUtils


Donator

Heri Bender


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page