Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Object skips Thisform.Release()
Message
De
11/06/2003 12:57:25
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00798705
Message ID:
00799016
Vues:
49
>Bill,
>
>>It's used by all the classes in _base.vcx.
>
>Frankly, once I opened the first few classes in the FFC and looked at the code, I decided to avoid the FFC, because it does a lot of heavyweight, performance robbing, stuff that IMHO is pretty worthless. If they have some class stuff that I actually want to use, I "borrow" the useful code that I want into a class hierarchy of my own design.

Hi David,
I believe I understand the concept of an orphaned or dangling object. But this seems to be different.

I do something like this:
button.method()
  lo = createobject(HyperLink)
  this.oHyperLink = lo
  lo.addproperty('oCreator',this)
endproc
When my code reaches the line "THISFORM.Release()" it just skips over the line. The Form.Release() method is never executed, but the variable that the form is linked to becomes .null.
Normally when I'm leaving a reference to an object, at least the Form.Release() is executed, it's just that the form doesn't leave the screen.
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform