- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been successfully calling a subroutine whose integer arguments nRange, nVal & nPtMax are used to set the size of a working array real*4 xydata(nRange*nVal*nPtMax).
All is well when nRange*nVal*nPtMax = 240,000, but when increased to 260,000 it fails with a stack overflow error.
If I set the size of the array to a constant value eg 280,000 it works perfectly. Is there a limit on automatically sized arrays?
Puzzled again
Alan
All is well when nRange*nVal*nPtMax = 240,000, but when increased to 260,000 it fails with a stack overflow error.
If I set the size of the array to a constant value eg 280,000 it works perfectly. Is there a limit on automatically sized arrays?
Puzzled again
Alan
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's a limit on stack space. Increase it by appending the options /link /stack:nnnnnnnnn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks for your prompt reply - I now realise that I should have remembered the solution, but it's been a couple of years since I had any similar problems.
Alan
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'll note that the on-disk documentation has help under "stack", and there has been a Visual Fortran Newsletter article on the same topic.
Steve
Steve
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