Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
(OOP) Part Time Composite Objects?
Message
From
26/08/2003 16:50:35
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
25/08/2003 17:43:37
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00822766
Message ID:
00823588
Views:
25
Chris,
Don't know how far you've gotten in your access method, but...

It's the "child" object created in GetBizObject() that has an lCreatedNewInstance property added.

This was done so you can check during Destroy() to determine whether the "child" object was created merely as a function of the containing object's needs or was instantiated "in its own right." This way, you know whether to Release() it vs. just setting the object property to .NULL.

We got together with Kevin on this one at some point over the past couple years to solve both the problem you mention and address some dangling reference issues we were muddling through.

I would be interested to see what you did in your access method, though, when you've finished it.
---J

>Thanks, that's a good function, but with only one lCreatedInstance, it's a little less robust than I need. I'd been trying to find a way to try and pluck it from the children list, and sort of abandoned the idea when I couldn't wrap my head around it.
>
>Right now, I'm testing an _access method creating it if it doesn't already exist.
>
>Chris.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform