Author Topic: Undesirable deletion of objects in a sequence d.  (Read 2258 times)

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Undesirable deletion of objects in a sequence d.
« 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?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Undesirable deletion of objects in a sequence
« Reply #1 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"
The Sparx Team
[email protected]

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Undesirable deletion of objects in a sequence
« Reply #2 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.

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Undesirable deletion of objects in a sequence
« Reply #3 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.