Thank you very much for this advice! I had a similar problem and finally got it right after reading this.
>There's no problem holding object references in properties. You just need to tidy up in the DESTROY, which I find to be very easy. My rule is this: if I design a class to have a property that will contain an object reference I first add the property, document it, then immediately add code to the class destroy that sets the property to .NULL. I never have any problems with forms releasing and I rarely have c0..5 errors.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement