Ver Mensaje Individual
  #2  
Antiguo 14-05-2006
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.110
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

¿De dónde sale "toolbar1"? ¿Dónde declaras esa variable?

En todo caso, echa un vistazo a la ayuda del método "Destroy" de "TObject":

Cita:
Do not call Destroy directly. Call Free instead. Free verifies that the object reference is not nil before calling Destroy.

(...)

Destroy should be implemented so that it calls Free on all subobjects created within the object’s constructor (that is, allocated by the constructor). Unlike Destroy, Free provides a safeguard when destroying objects that are nil.
__________________
David Esperalta
www.decsoftutils.com

Última edición por dec fecha: 14-05-2006 a las 22:42:02.
Responder Con Cita