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: Baseline Loop
Topic Summary:
Created On: 2-Nov-2007 14:45
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.
 2-Nov-2007 14:45
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Attached is a standard strategy for dealing with the baselines of a module.

Ran into a wierd exception violation associated with running through the baselines of an open module.

I had previously run into this when the main program had a baseline loop and called a library function that likewise looped through the baselines of the same module; DOORS didn't like that. The solution was to first stage the baselines in a skip and then deal with them then.

I could not figure out what was wrong in this new situation, but I now conclude that you should ALWAYS stage the baselines of a module in a Skip list before dealing with them. See attached for example.

This technique is needed in some other situations and should be in the back of the programmer's mind; such as dealing with the links of an object. One such mandatory situation is when you are going to be deleting the loop variable (e.g. deleting one of the outlinks of an object) and you don't want to be in the middle of a do-loop when deleting: for lnk in obj ->"*" {delete(lnk)} can cause problems.

The key feature of the attached is retrieving them from the Skip list in the exact order they were found. The 'Sequencer' variable as the Key of the skip list accomplishes that.

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