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

Intel fortran difficulty with large memory consuming

Intel_C_Intel
Employee
455 Views

I just got a problem opposite to the following one.

After I built the solution, I run it with Debug--> Start without debugging. It works.

But, when I try to run it in DOS command line, it failed with stack overflow.

It sure uses lots of memory. But why it works with "start without debugging".

http://softwarecommunity.intel.com/isn/Community/en-US/forums/permalink/30234645/30224268/ShowThread.aspx#30224268

wchiang@flowscience.com:

After I built successfully a program, I clicked on Debug..Start Without Debugging, or Ctrl-F5, and got the message:

Visual Studio cannot debug because a debug target has not been specified.

What should I do?

Wen

0 Kudos
1 Reply
Steven_L_Intel1
Employee
455 Views
I cannot think of a reason why it would work from Visual Studio and not from the command line, unless it had to do with the input file being used. Try adding the /heap-arrays option (in Visual Studio you have to type this in for Additional Options on the Command Line property page.) This will cause temporary and automatic arrays to be allocated on the heap instead of the stack. (Requires a 9.1 compiler from the last six months.)
0 Kudos
Reply