For example:
Thank you
B4X:
Sub Process_Globals
Type TlistaElementi ( _
IDx As String, _
Title As String, _
Posizione As Int _
)
dim Lista as list
end sub
Sub Activity_Create(FirstTime As Boolean)
....
....
If FirstTime Then
Lista.Initialize
end if
end sub
sub myExperiment
for a = 0 to 100
dim elemento as TlistaElementi
elemento.Posizione=a
Lista.add(elemento)
next
end sub
sub main
myExperiment
Lista.clear //NOW MEMORY OF elementoS is FREED or not ?
end sub
Thank you