![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Error message help Topic Summary: Created On: 10-Mar-2003 16:51 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Error message help
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.