Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: skip the Assign destroy object or fire a C5 crash
Message
 
To
09/04/2004 16:04:11
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00893546
Message ID:
00893804
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform