Author Topic: object garbage collection  (Read 5786 times)

timhawkins

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
  • If a man says something and a woman is not around to hear him, is he still wrong?
    • View Profile
object garbage collection
« on: August 15, 2003, 08:58:08 am »
I often find that I create some objects that I subsequently delete from a diagram, either becuase I have created them on the wrong diagram, or as the wrong type.

However deleteing them from the diagram does not delete them from the database, even if there are no references to them.

I would make my life easier if there was an abilty to "display zero usage objects" for any given point in the hierarchy, and then be able to select the ones That I wish to delete. This prevents the need for me to do properties/show usage on each to find the zombie objects.

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: object garbage collection
« Reply #1 on: August 17, 2003, 10:09:31 am »
There is such an ability: select Edit - Find Object, and check "Find orphans".

Hope this is what you are looking for.

Mikkel

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: object garbage collection
« Reply #2 on: August 26, 2003, 04:48:05 pm »
Great stuff!
However, I have a package in  a diagram that does not appear in the browser tree.  [Find orphans] does not find this element and [Locate in tree] doesn't find it.
I actually want this element - how do I get it back into the tree?
tia
BB
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: object garbage collection
« Reply #3 on: August 27, 2003, 04:11:26 am »
As far as I was aware, it is impossible to have packages (and classes etc.) on diagrams if they are not also in the tree, so I am unable to help you (except to suggest that you look extra carefully to find it!).

Mikkel

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: object garbage collection
« Reply #4 on: September 03, 2003, 09:14:02 pm »
 :P Well I thought you were right and I was cRaZY!

When I went back into the model the next day the package was right there looking at me.  So I put it down to being chronologically challenged.

BUT today it happened again - it did! it did!

And this time EA agreed with me.  Gave me an error when I tried to find it via the context menu saying this element cannot be located in the tree (or somesuch).  Seems it has to do with packages imported.  

Since the packages appear to re-appear next morning, I hereby dub this the "FedEx" bug.  Has anyone else seen it?
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.