Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
(OOP) Part Time Composite Objects?
Message
De
26/08/2003 16:50:35
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
25/08/2003 17:43:37
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00822766
Message ID:
00823588
Vues:
24
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform