- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am stuck with this error when I increase my array size above a certain value (which is embarrasingly not very big!). I guess this is a more general problem than just limited to FORTRAN.
I can compile and debug, but as soon as I start running, this error comes up.
'Cannot execute: Bad Executable Format(Win32 error 193)'. Is any thing wrong with my project setting?
Will appreciate any help,
Thanks,
Sima
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you get any warnings while linking the application? What Windows version are you running? You say that the array size is "not very big", but I've often seen people underestimate the total size of an array. What's the array declaration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get a warning message when I try to link:
'warning LNK4084: total image size -207052800 exceeds max (268435456); image may not run'
The largest array I have is some thing like a(13000,50,2,80); plus 4 to 5 arrays like b(13000) and some like c(50,2,80). Do you think it's because of array size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Absolutely, yes. That linker warning is telling you that the static code and data size of your application is greater than 2GB (that's why the number is negative.) 2GB is the absolute maximum limit for static code and data size on Windows (even Windows x64).
You'll have to reduce the size of your arrays. If you need more array space, you'll have to move to Windows x64 using an Intel EM64T processor and use ALLOCATABLE arrays (to get around the static size limit.)
You'll have to reduce the size of your arrays. If you need more array space, you'll have to move to Windows x64 using an Intel EM64T processor and use ALLOCATABLE arrays (to get around the static size limit.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot Steve, I'll try.
Sima

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