- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i am compiling an app using IVF 10.1 but not the IDE. During run time i get
forrtl severe(170) stack overflow
at a call to one of my subroutines.
this apps compiles and runs fine with FPS 4.0
How do i fix the problem? i tried /Qsave and /F1000
What is good programming practice to minimize the likelihood of stack overflow occuring?
--- james
forrtl severe(170) stack overflow
at a call to one of my subroutines.
this apps compiles and runs fine with FPS 4.0
How do i fix the problem? i tried /Qsave and /F1000
What is good programming practice to minimize the likelihood of stack overflow occuring?
--- james
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had exactly this same problem when converting from MS Powerstation. The solution is to allocate memory in subroutines usingALLOCATE to dinension variables. I think this takes memory from the Heap rather than the Stack. Powerstation did not care, it just kept increasing memory as needed. At the end of the subroutine be careful to DEALLOCATE those variable or you will get another error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add /heap-arrays - this will match the FPS behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - jfdoyle
i am compiling an app using IVF 10.1 but not the IDE. During run time i get
forrtl severe(170) stack overflow
at a call to one of my subroutines.
this apps compiles and runs fine with FPS 4.0
How do i fix the problem? i tried /Qsave and /F1000
What is good programming practice to minimize the likelihood of stack overflow occuring?
--- james
steve:
i used /heap-arrays:2 and everything seems to work just dine.
thanks, james
forrtl severe(170) stack overflow
at a call to one of my subroutines.
this apps compiles and runs fine with FPS 4.0
How do i fix the problem? i tried /Qsave and /F1000
What is good programming practice to minimize the likelihood of stack overflow occuring?
--- james
steve:
i used /heap-arrays:2 and everything seems to work just dine.
thanks, james

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page