Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: ocroquette on May 10, 2007, 07:19:03 am

Title: Undesirable deletion of objects in a sequence d.
Post by: ocroquette on May 10, 2007, 07:19:03 am
Hi

In an interaction diagram, I have objects 1 & 2.
Object 1 creates object 2 ("new"), and then sends a message to it.

If I just do that, EA will then automatically add a deletion of the object 2 right after.

Why is that? I want the object 2 to continue living, even after the end of the sequence!

Is it a bug?
Title: Re: Undesirable deletion of objects in a sequence
Post by: KP on May 10, 2007, 01:35:15 pm
Quote
I want the object 2 to continue living, even after the end of the sequence!

Unset the option "Tools > Options > Diagram > Sequence > Garbage Collect"
Title: Re: Undesirable deletion of objects in a sequence
Post by: ocroquette on May 10, 2007, 11:35:43 pm

It makes sense, thanks a lot!

Bottom-line: you have to set the option THEN create your diagram. Already existing diagrams are not impacted by the option.
Title: Re: Undesirable deletion of objects in a sequence
Post by: ocroquette on May 11, 2007, 01:00:31 am
Actually, it is sufficient to close the diagram and open it again after having changed the setting.