Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Destroy method of biz object is not fired when it's real
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00989209
Message ID:
00989483
Views:
46
>I found that form does have some code to cleanup everything:
>
>
>IF TYPE("This.RefBizObj") == "O"
>	lnObjCount = This.RefBizObj.GetObjectCount()
>	FOR lnBizObj = lnObjCount TO 1 STEP -1
>		loBizObj = This.RefBizObj.Get(lnBizObj)
>		IF TYPE('loBizObj') == 'O' AND NOT ISNULL(loBizObj)
>			ThisForm.UnregisterBizObj(loBizObj)
>			loBizObj.UnregisterAllChildren()
>			loBizObj.oParentBizObj = .NULL.
>		ENDIF
>	ENDFOR
>ENDIF
>
>So the problem appears only when the object is instantiated independently.

Maybe they is hope for independent instanciation if those registration methods can be implemented "independently"?

Notice how they set the object reference to NULL?:-) Thats a timing issue:)
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform