Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29303 Discussions

Defered length character as function result gives stack overflow

Andrew_Smith
Valued Contributor I
452 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
452 Views
Andy,

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

------

Wendy

Attaching or including files in a post

0 Kudos
Reply