- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Does anyone have any idea on the limits on array size?
I wrote a fortran program having a large array, say arr(20000,600000). Compilation of the pgoram was failed under x64 platform with MS visual studio 2008 professional edition, showing error message 'Compilation aborted (code 3)'.
What does code 3 mean and what's the memory limit for a array on x64 platform?
Thanks
Alex
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For Windows x64, you should use ALLOCATABLE to make an object of 2GB or more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See our Knowledge Base article on Memory Limits for Windows Applications.
Code 3 is just the termination error - you should have seen a previous error message saying that the array was too large.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. It works.

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