Re: TokenMoveFrom event send twice during Scene destruction

Andreas Kraft (kraft@fokus.gmd.de)
Thu, 19 Nov 1998 18:55:33 +0100 ((MEZ) Mitteleurop. Zeit)

Stephane,

On Thu, 19 Nov 1998, Stephane ALLIZON wrote:
> We have notice that the TokenMoveFrom event is send two times during a
> Scene destruction.

No, it should not.

> If you follow step by step the MHEG-5 IS from a Launch elementary
> action, you will do the following steps : (Context: an Application + a
> Scene + a TokenGroup ; run Launch elementary action)
>
> - LAUNCH
> -- Destruction Active Scene
> --- Destruction Group part of Active Scene
> ---- Destruction all Ingredients
> ----- Destruction TokenGroup
> ------ Deactivation TokenGroup
> ------- send TokenMoveFrom event
> --- Destruction Root part of Active Scene
> ---- Deactivation Active Scene
> ----- Deactivation Group part of Active Scene
> ------ Deactivation all Ingredient
> ------- Deactivation TokenGroup
> -------- send TokenMoveFrom event

This not correct. The Deactivation behaviour is only executed once, not twice.
This is managed by checking the RunningStatus attribute of an object in the
Deactivation behaviour of the Root class.

Best regards,

Andreas

-- 
  o  _     Andreas Kraft
 (\_|_)      GMD FOKUS, kraft@fokus.gmd.de, +49 30 3463-7232
 T> ] [        The sky is the limit