Book a Demo

Author Topic: Sequence diagrams: new / delete  (Read 5170 times)

Tjerk

  • EA User
  • **
  • Posts: 231
  • Karma: +1/-0
    • View Profile
Sequence diagrams: new / delete
« on: October 29, 2002, 02:29:17 am »
Hi Geoff,

I have the following issues on sequence diagrams (build 3.10.504):

  • When I new an object in a sequence diagram, make one call to that object and continue with other objects, the newed object is automatically destroyed (object lifeline is ended with the little cross). This doesn't seem to be correct: when I new an object, it only needs to be destroyed when I explicitly make a delete call.
  • When I make a delete call to an object, I'm not able to call any other object methods in the scope of the delete call because the diagram then starts a new object lifeline after the object has been deleted. But I would like to be able to make some calls to other objects within the object's destructor (which I mark as a delete call).
  • It would be nice if a call to a constructor or destructor would default set the call as a new / delete call.


Greetings,
Tjerk

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Sequence diagrams: new / delete
« Reply #1 on: October 31, 2002, 04:19:34 am »
Hi,

In the View/Options dialog - Sequence page, there is an option to turn on or off the 'Garbage Collect' (automatic deletion) feature.

I have made a few adjustements to the next build of EA (will probably be released next week or so). In the revised behaviour you can make  call(s) after the Delete action and before the terminating X.

Im not sure about the implications of using the Constructor or Desttructor call as New and Delete. I will have a think about it.

Hope this will help,

Geoff Sparks