Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Question on Objects in a Skip List
Topic Summary:
Created On: 1-May-2007 14:24
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Tuesday, May 1, 2007 8:56 PM

Answer:
I tried this and yes, the object handles remain valid after the module has been closed and re-opened.
 1-May-2007 14:24
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

If I open a module in read only, load all the objects of that module into a skip list, and close the module, will the object references in the skip list still be valid? I realize I won't be able to modify or extract information from them until I reopen the module(if I'm wrong here thats great and let me know).

But I just want to know if I can store the objects in the skip list and close the module without corrupting (per say) my references to the objects. My plan is to open the module build the skip list, put a unique attribute from each object into a list DBE, and then close it. Then later, reopen the module, find the object in the skip list and modify it.

If I can do this, I won't have to rebuild the list after I reopen the module each time.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 1-May-2007 15:23
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
I tried this and yes, the object handles remain valid after the module has been closed and re-opened.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 1-May-2007 20:56
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Thanks tony.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 1-May-2007 21:33
User is offline View Users Profile Print this message


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

Just a friendly cautionary note...
This works because DOORs does not take out the trash at module closing. I would be reticent to base anything important on this as they may (one day) decide to do some form of garbage collection in the future and Skip lists would be a likely place for them to start.

Dan
Report this to a Moderator Report this to a Moderator
 1-May-2007 23:40
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I think the issue is whether the 'Object' variable is a handle that is a static feature of the Object, or if its calculated at run time or open time. In this case, it appears its a static feature. Yes, you cannot use the Keys to your safe until you unlock your home and go in, but the keys are still valid keys.

I don't see any reason why any language would go in and clean up Skip lists; in this case the coder is expected to 'clean them up' by deleting the Skip when done with it. I believe the space IS freed up when the script ends (and dialogs closed), even when the Skips are not actually deleted.

DOORS does have two areas of clean up they should do. The 'string' table is a disaster. There is also some other residual issues that I haven't nailed down that cause future DXL to run slower than expected, due to the lingering effects of earler now-ended DXL.

- Louie
Report this to a Moderator Report this to a Moderator
 1-May-2007 23:49
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

On a somewhat related topic, I got the Object handle of an object and then purged it. After the purge command I was able to retrived Object information such as Text and ID, but was only able to do so for about a second and a half after purging. After that time the Object handle became invalid and my retrievals correctly generated DXL errors.

That was real spooky.

- Louie
Report this to a Moderator Report this to a Moderator
 2-May-2007 17:58
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi David, Hi Tony,

my experience has shown that it is really a great furtune if the Objects are still valid!
I think the Object reference is a pointer into memory where the module is load into.
So it depends on memory management, if the module is load into the same memory region again?!

To bank on it could cause sporadic "Access Violation" errors, which may be hard to debug and of course hard to explain to the users

Would suggest to place UID of module together with absolute number into the skip lists, if you really need to close the module between filling your skip list and use the collected data.

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 2-May-2007 18:39
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Well I kind of made this a moot point for what I'm doing since I'm opening the module in read only, when I need to change something, I change to edit, make the change, and downgrade back to read. I only close the module when I'm done. This gets around any problems with Object handles being null. So I'm good.

Great info though.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.