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: Error message help
Topic Summary:
Created On: 10-Mar-2003 16:51
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-Mar-2003 16:51
User is offline View Users Profile Print this message


Mark Phillips

Posts: 40
Joined: 17-Dec-2002

All,

I am pulling my hair out over this one. I have a function that I have saved to its own file (stringParser.inc) and put the proper include statement into my code. I then call the function and get the following output:

About to go into the function "¾NPP¾_iNc_¾_____ 3 99 100" 0
-R-F- DXL: <c:\\mark\\doors\\share\\readDataArrayFromFile.inc:42> internal error, please submit a bug report
-R-E- DXL: <c:\\mark\\doors\\share\\readDataArrayFromFile.inc:42> incorrect return statement

I have written a "test" code for this function, with the same include statement and it works without the error (even when reading from a file). Attached are 3 files:

readDataArrayFromFile.inc - The function that gives the error when called.
stringParser.inc - the stringParser function.
stringParser.dxl - the test program for the stringParser function.

I have been putting my functions into seperate include files and building a "library" of user functions and have never had a problem with doing this.

Mark

PS. A note about readDataArrayFromFile.inc, the variable filename is a global variable with the value "c:/temp/index.exp" (same file name used in the test program).

PPS. I am most confused with the print statement just prior to calling the function showing, but the 1st non-commented line in the function is also a print line that does not print. Does this give any insite?

-------------------------
Mark Phillips
mark.phillips@swri.org
Report this to a Moderator Report this to a Moderator
 10-Mar-2003 19:55
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Didn't examine the code too carefully, but I don't think it works to return Skip lists nor Buffers (nor Arrays) in DXL. I think it has to do with the create/delete requirements of these data structures and the direct/indirect addressing they use (for example, "skip1 = skip2" does NOT make a copy of the skip, but rather just points 1 to 2: if you modify skip2 you also modify skip1). Notice that if a function returns a "tempSkip" variable, then this skip list is NEVER deleted.

Until I'm proven wrong (which may be forthcoming...), put the Skip/Buffer/Array as a call parameter, using "&": "void GetSkip(string InString, Skip &OutSkip)" rather than "Skip GetSkip(string InString)". I wonder if the calling function MUST issue the "create" before calling the function, but its methodologically sound to do so.

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