Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: remove a Page member leave a zombie object
Message
 
To
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:
01060177
Views:
16
Fabio,

Of course...

But the member Page1 is in class definition.
What is correct?
- removing all information about member Page1
- or don't removing member Page1

- (now is only half way)

And different behavior:
Designe - you cannot remove class's members in derived class or object
Programmayticaly - You can remove ....

MartinJ

>>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
>>>
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform