![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Stack overflow error Topic Summary: Created On: 2-Oct-2003 15:48 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
I also receive these errors while programming recursive functions that call themselves too many times (on the order of hundreds of levels deep).
-Dennis |
|
![]() |
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Stack overflow error
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.