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: Printing module names linking to the current module
Topic Summary:
Created On: 28-Jun-2005 17:16
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.
 28-Jun-2005 17:16
User is offline View Users Profile Print this message


Mary Miller

Posts: 36
Joined: 12-Sep-2002

All,

I am getting a strange error with my DXL code. If I run it two times in a row, the error disappears.
So, in one module, I left out the "if statement" that I indicated is a problem in the code. I get an error such as the following: array bounds exceeded (339) The array bounds are 340. If I run the code again, right after, I do not get an error. Now, if I include the "if statement", which is indicated as the problem code, I do not get any errors.

I ran the code on another module, without the "if statement", I am fine. However, if I include the "if statement", I get the following error:

An unexpected error has occurred: doors.exe caused an EXCEPTION_ACCESS_VIOLATION in module doors.exe at 001B:00521826

The place indicated is where the array is sorted. The problem for the sort starts when the function, containing the sort, is called.


Report this to a Moderator Report this to a Moderator
 28-Jun-2005 18:51
User is offline View Users Profile Print this message


Bruce Tuskey

Posts: 77
Joined: 2-Mar-2004

Mary,

Your first problem is caused by using a "Link" type variable for outLnkRef. Link types will only return information about open modules. You should use a "LinkRef" type to get the count. Then you will need to open the module for each LinkRef. Then you can use the "Link" type to get the information you need (target() function will only work with a "Link" type).

See this thread:

LinkRef Usage


Your second problem is probably because not all elements of the array have data. If one or more are not initialized (set to at least null), DOORS will choke! This problem stems from your first problem.

See code example below.

Hope it helps!

-------------------------
Bruce Tuskey
Sr. Principle Engineer
Tuskey@gmail.com

"All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien)

Edited: 29-Jun-2005 at 16:17 by Bruce Tuskey
Report this to a Moderator Report this to a Moderator
 29-Jun-2005 19:43
User is offline View Users Profile Print this message


Mary Miller

Posts: 36
Joined: 12-Sep-2002

LinkRef doesn't seem to work for code where I am looking for outgoing links.

What I ended up doing is initializing the array that would capture all the outgoing links, and I used my troublesome "if statement." That ended up working very well.

Thanks,

Mary
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.