Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29252 Discussions

Defered length character as function result gives stack overflow

Andrew_Smith
Valued Contributor I
406 Views
I have a function that causes protection violation when the string size reaches 1Mb in size.

I am assuming it is a stack overflow since I believe 1MB is the default stack size.

Is it possible to move the function result onto the heap without using /heap-arrays for the whole project?

Andy
0 Kudos
1 Reply
Wendy_Doerner__Intel
Valued Contributor I
406 Views
Andy,

You can also increase the stack size, see this article.

------

Wendy

Attaching or including files in a post

0 Kudos
Reply