Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: remove a Page member leave a zombie object
Message
From
19/10/2005 05:14:21
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01060055
Message ID:
01060165
Views:
15
>Hi Fabio,
>
>This behavior is knowly from VFP 3.0 with container class.
>I don't know if is BUG or designe behavior.
>
RemoveObject cannot make half operation,
and to leave pieces for road.

>
>I have first rule:
>- If container class contains any object member then I don't remove it/them.
>
>MartinJ
>
>>>Fabio,
>>>
>>>Not a bug. Since the class is defined with one member element, that element can't be fully removed at runtime.
>>>
>>
>>Before writing you should verify!
>>
>>
>>CLEAR
>>=NEWOBJECT("pageframe1")
>>
>>DEFINE CLASS pageframe1 AS PageFrame
>>	Pagecount = 1
>>
>>	PROCEDURE Init
>>		? "Pagecount is",this.Pagecount
>>		? "Now remove the page1",this.RemoveObject("Page1")
>>		? "Pagecount is",this.Pagecount
>>		? "this.Page1 is a ",this.Page1
>>		? "AMEMBER(PAGE1) = #",AMEMBERS(AMM,this.Page1)
>>		? this.Page1.Name
>>ENDDEFINE
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform