Software Archive
Read-only legacy content
17060 Discussions

Stack overflow error

Intel_C_Intel
Employee
707 Views
For the stack overflow error, see the on-disk documentation index under "stack, setting size of".

Yes, I have already had setting size, thus I got solution in Compaq 6.1.

But I intend to apply source codes into dll file. The on-disk documentation says control of stack setting size is limited at only an exacutable process.

Is it possible stack setting size to use in dll file? I have tried it , but it failed.

I want to make dll file from fortran sourec code(MS PowerStation 4.0) and link it with VC++.

Thanks.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
707 Views
No, it is not possible to change the stack size of a DLL.

If you are getting stack overflow errors, then try to find out where in the program the overflow is occurring. If it's on a routine entry, you probably have an "automatic array" (local array declared with a dimension based on an argument) - consider replacing this with an ALLOCATABLE array.

See the article on passing arrays in Newsletter 1 for more tips.

Lastly, upgrade to CVF 6.5A, which removes many unnecessary array copies.

Steve
0 Kudos
Reply