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: Dynamic Skips & Memory
Topic Summary: Embedding Skips, and When to Delete
Created On: 10-Apr-2007 14:59
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.
 10-Apr-2007 14:59
User is offline View Users Profile Print this message


Karen Kayam

Posts: 6
Joined: 28-Feb-2007

The issue of memory has been discussed already in these forums, and we all know it's importatnt to clean-up - especially where DOORS doesn't.

In these 30 lines of code which stores the names of users in the database and then prints then out letter by letter, the "main" or highest-level skips are deleted. But the s_tmp Skip is not - and it's created once for every user.

Does DOORS delete it when it goes out of scope, at the end of each "for" loop? And if not, where should this Skip be deleted?

(I'm actually using this concept in a much more complex way where i have about 5-7 levels of depth - otherwise deleting would be less important for this example)

Thanks,

Karen Kayam
Product Development Analyst, PLA - MIS
NICE Systems. Israel
(M) +972 (054)5442193
Karen.Kayam@nice.com
www.nice.com

Report this to a Moderator Report this to a Moderator
 10-Apr-2007 15:30
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

It is cleared I believe once it goes out of scope but the memory is not released until the end of the script unless you delete it. DXL has no garbage collection. Why are you using a skip list to store each character? Just use the string as the key and the data object in the main skip. Change to this.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 10-Apr-2007 at 15:31 by David Pechacek
Report this to a Moderator Report this to a Moderator
 11-Apr-2007 03:32
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Not sure where the memory is eventually cleared up.

So the first loop creates a skip and puts it inside a master skip. The 2nd loop looks through all the sub-skips of the master skip. Looks to me that either you should delete skpUser after your for s in skpUser loop, or have a 3rd loop that gets all the sub-skips and deletes them, before deleting the master.

- Louie
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.