>Thanks that helps alot, but I'm not sure I understand about about the dangling object reference. Since thisform.oCaller is a property of the form won't it be destroyed when the form is destroyed?
>
>Thanks
It might at the form level, but I've found that objects contained in the form won't get rid of it. For example, I have a grid that has an .ocursor property.
This is used to contain an object reference of the cursor in the DE that matches the .RecordSource property. The .Destroy() event of the grid (if I put .oCursor = .NULL.) in it, will not kill it because of the order in which contained objects are destroyed. I've found that I must put any code to kill object references in the .Destroy() event of the form. One day, I'll devise a nice clean mechanism to kill them off, but for now, I just have them at the form level.
Steve
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