![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.