Ver Mensaje Individual
  #2  
Antiguo 06-10-2011
Avatar de newtron
[newtron] newtron is offline
Membrillo Premium
 
Registrado: abr 2007
Ubicación: Motril, Granada
Posts: 3.478
Reputación: 21
newtron Va camino a la fama
Hola.

Si no me equivoco el problema que estás teniendo es que no estás inicializando la lista, así que tendrías que cambiar esto:

Código Delphi [-]
if Assigned(Lista) then
   Lista := TList<string>.Create();

por esto:

Código Delphi [-]
if not Assigned(Lista) then
    Lista := TList<string>.Create();

y ya puestos, al final deberías liberarla con un free:

Código Delphi [-]
Lista.free;

Saludos
__________________
Be water my friend.
Responder Con Cita