Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: skip the Assign destroy object or fire a C5 crash
Message
 
À
09/04/2004 16:04:11
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00893546
Message ID:
00893804
Vues:
19
>George,
>
>>If I were to hazard a guess, I'd say the problem is caused by a stack overflow. If I can eliminate that by re-writing the code properly, how can I (or you) say it's a bug?
>
>You really don't understand what is happening? I know what is happening, and I can say what is going wrong in VFP internally. The object reference counter is not calculated correctly when the object reference is handled by an assign method. It is probably is decreased when the assign is called while the property still holds the reference. Since in Fabios example it is not explicitly assigned when the object reference passed as parameter is the same as the reference stored int he property it is not increased anymore. When it reaches zero, poof the object is gone, or because of the unfinished click event VFP lost a call stack entry and causes a C5.
>
>If you don't believe me, just ask any VFPT support member to dig into this. You'll see that I'm right!!
>
>Walter,

No you're not right. See my response to Fabio.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform