
Signature
Thanks in advance,
Juan Dent, M.Sc.
Inline
Willy.
>A slight correction if I may:
>
[quoted text clipped - 5 lines]
> If the class is not pooled but has JITA enabled, then Activate gets called
> upon activation, not because it is being taken out of the pool.
No, Activate is called whenever the object is taken from the pool.
'Deactivate' when an "activated" object gets released.
> Also, I don't see this behavior either if the component is pooled or JITA
> or
> both:
You must have 'Component supports events and statistics' enabled.
> --Another overridable is Construct, this gets called whenever a 'fresh'
> --instance is created.
[quoted text clipped - 3 lines]
>
> Is this correct?
Yep, "Construct" is called when the Object Construction is enabled, but only
when a fresh instance is created, NOT when the object is taken from the
pool.
The same goes for the objects contructor, it's only called when a new
instance is created, NOT whe taken from the pool.
.
.
>> > Hi,
>> >
[quoted text clipped - 30 lines]
>>
>> Willy.
Juan Dent - 18 Jul 2005 20:04 GMT
An example I have shows that Activate() is called not only when pooling is
enabled and the object is taken from the pool, but EVEN in the abscence of
pooling, if JITA is enabled, then Activate()/Deactivate() are called each
time the object is activated/deactivated...
Thus we have a contradiction or we differ in some other setting. ??

Signature
Thanks in advance,
Juan Dent, M.Sc.
> Inline
>
[quoted text clipped - 68 lines]
> >>
> >> Willy.
Willy Denoyette [MVP] - 18 Jul 2005 21:38 GMT
Well, I didn't say it's not called in a JITA scenario, I said it's called
when an instance is taken from the pool even when JITA is not enabled.
Both JITA and Pooling are different concepts, but they can, and are mostly
used in tandem.
Note that both JITA and pooling have different semantics, a pooled non-JITA
object is activated when the client creates an instance, a JITA (pooled or
not) object is activated (when not allready activated) when the client calls
a method. A pooled JITA object behaves like a JITA.
The same goes for the deactivation, a pooled non-JITA object is deactivated
when the client releases it's reference, a JITA object (pooled or not)
deactivates when the method returns with the Done bit is set to
true(automatically or manually). A pooled JITA, deactivates also when the
client releases it's reference.
Willy.
In JITA scenario's Activate is being called when activated in a context
> An example I have shows that Activate() is called not only when pooling is
> enabled and the object is taken from the pool, but EVEN in the abscence of
[quoted text clipped - 83 lines]
>> >>
>> >> Willy.