Re: connection points?
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 02/24/04
- Next message: Phil Da Lick!: "Re: connection points?"
- Previous message: Phil Da Lick!: "Re: connection points?"
- In reply to: Phil Da Lick!: "Re: connection points?"
- Next in thread: Phil Da Lick!: "Re: connection points?"
- Reply: Phil Da Lick!: "Re: connection points?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 18:20:19 -0500
"Phil Da Lick!" <kjhgjhfgfdjgkjkhfdghhjfd@hkfhkgjfdhhfdg.spam> wrote in
message news:qbQ_b.11518$Y%6.1097385@wards.force9.net...
> "Igor Tandetnik" <itandetnik@mvps.org> wrote in message
> > What if the client still holds an interface pointer of the element?
You
> > can't have an element destroyed, or the client will crash the moment
it
> > calls anything through that pointer.
>
> erm I think I'm getting confused about your terminology now, as I did
when I
> read up on connection points. Basically I have an object which holds a
list
> [collection] of other objects. The list is not incredibly dynamic, and
all
> add/remove functions will go through the parent object. When the
parent
> object dies, all children die. No child will die before the parent
unless it
> is the result of a proper delte operation within the parent's list
> functions. No child object exists before the parent is created.
I'm describing a situation like this:
Dim coll as MyCollection
Dim elem as MyElement
Set coll = ... ' initialized somehow
Set elem = coll.Item(0)
Set coll = Nothing
' At this point, there are no more references on MyCollection object.
' Does it get destoyed, and if so, what happens to its elements?
elem.SomeProperty = "abcd"
' If on the previous line the collection was destroyed with all its
elements,
' the client is in trouble here
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
- Next message: Phil Da Lick!: "Re: connection points?"
- Previous message: Phil Da Lick!: "Re: connection points?"
- In reply to: Phil Da Lick!: "Re: connection points?"
- Next in thread: Phil Da Lick!: "Re: connection points?"
- Reply: Phil Da Lick!: "Re: connection points?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|