Hi Biterider!!
Using SortedCollection for items that belong to others data structures have the problem that leak memory (Done call DisposeAll, but items are disposed by the others structures).
I'am making a Done method in the descendent:
Method CompositionsCollection.Done, uses esi
SetObject esi
.if [esi].pItems != NULL
MemFree [esi].pItems
.endif
MethodEnd
No problem. But I think could be interesting to add to collection a new method:Method Collection.Free, uses esi
SetObject esi
.if [esi].pItems != NULL
MemFree [esi].pItems
.endif
MethodEnd
Regards. HSE