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: Stack overflow error
Topic Summary:
Created On: 2-Oct-2003 15:48
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-Oct-2003 15:48
User is offline View Users Profile Print this message


Alec Witham Crawford

Posts: 24
Joined: 2-Jul-2003

Hello all,

I am getting a Stack Overflow error when running a dxl script. I already have runLim set to 0 (no limit). In the error, it says the limit is 4096. Does anyone know if the limit gets changed by certain functions (maybe dialog boxes)? The error only seems to occur when running a dialog box provided by Telelogic (Style mapping dialog).

Thanks!
Alec
Report this to a Moderator Report this to a Moderator
 2-Oct-2003 21:50
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

From the DXL manual...

There is also a pragma for setting the size of the DXL run-time stack, which is used as follows:

pragma stack, 10000

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 2-Oct-2003 22:38
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

I also receive these errors while programming recursive functions that call themselves too many times (on the order of hundreds of levels deep).

-Dennis
Report this to a Moderator Report this to a Moderator
 3-Oct-2003 12:38
User is offline View Users Profile Print this message


Alec Witham Crawford

Posts: 24
Joined: 2-Jul-2003

I tried setting pragma stack, 10000. It still gives me a stack overflow error. If I set it to 0, DOORS crashes (duh). The funny thing is that it crashes (or errors) AFTER a particular dialog box's close callback function. The dialog box is DoStyleMapping, which I think is a Telelogic dialog box. I added a few more functions to the file, but didn't touch that one, so I can't see how it would suddenly have stack overflow problems. I'm not doing anything recursively.

Any ideas?
Report this to a Moderator Report this to a Moderator
 6-Oct-2003 16:07
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Guess: Likely the Telelogic call has some requirements you are unaware of. Unlikely: try searching for "DoStyleMapping", using Windows Explorer Search, in all files under Doors/lib/dxl/, in order to find examples of its use. Unlikely: you are trying to access part of the DB after its closed.

- Louie
Report this to a Moderator Report this to a Moderator
 6-Oct-2003 20:29
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

Version: DOORs 5.2

I have seen the following error:

-R-E- DXL: <Line:xxxx> Stack Overflow (current limit is 4096)

The current limit refers to the size of the stack

This error occurred when I was building a string array. I added the 2,017 th element to the string array it blew up with the error above. I've also tested it relative to the size of each string that is placed into the array and that doesn't seem to make a difference on the number of elements.

I can increase the size of the stack and I will be able to add more elements to the string array.

My suggestion is to increase the size of the stack to as big as you can (within reason, of course)

Edited: 6-Oct-2003 at 20:37 by Douglas Zawacki
Report this to a Moderator Report this to a Moderator
 8-Oct-2003 14:05
User is offline View Users Profile Print this message


Alec Witham Crawford

Posts: 24
Joined: 2-Jul-2003

After a little more playing around I found that if I change the DoStyleMapping dialog function to call the dialog box using show (then kill it using destroy), I don't get the error. Unfortunately, it also prevents me from going further in the program. This leads me to believe that the problem is with the dialog box being modal. To test this, I took out all the other code and just call the DB using block; then, in the close callback, I just release it. I get the error (or DOORS crashes). This does not happen when using show and hide or destroy.

I checked my code to make sure I'm not inadvertantly trying to call the DB after it has been released, but I can't find anything.

Thanks for the help.

Alec
Report this to a Moderator Report this to a Moderator
 8-Oct-2003 20:11
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Alec,

Please post this last stripped-down DXL script if you are able. Perhaps one of us will be able to debug it if we have the entire program.

Also indicate which version of DOORS was used to develop the script.

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