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

Invalid Win32 appn

rdbyerco
Beginner
550 Views
Hello,

I was wondering if anyone has had success solving a problem like this in the past.

I've created an executable with Lahey-Fujitsu Fortran 95 v5.5 that requires 666MB of image space to run. This is well below the 1.75GB static code limit of my system (my OS is Windows 2000, v5.0, SP4). However whenever I run the executable I receive the error message "not a valid Win32 application". This is even true after I add the /3GB switch to my boot.ini file to increase the virtual address space to 3GB from 2GB. Is it just that I don't have enough memory because I have a 32 bit system, or am I actually creating a corrupt executable?

Rasheeda Byer-Coward
0 Kudos
3 Replies
Steven_L_Intel1
Employee
550 Views
Rasheeda,

Welcome to the Intel Fortran user forum. I'm not sure how much help we can be with your Lahey-Fujitsu compiler problem, but we can try.

In general, you won't get the "not a valid Win32 application" message simply because the application needs too much memory. That IS a symptom of a corrupted EXE, however. Certainly, 666MB is well within the normal limits. Are you SURE that's the amount of space it needs? How did you determine that?
0 Kudos
rdbyerco
Beginner
550 Views
Sorrr, I was not using the Lahey compiler. I was usng CVF verson 6.6C. The 666 MB of image size was the value returned to me from the compiler. I got the LNK4084 error message. The actual size of the executable is only 951KB.

And I was recently told that the /3GB switch does nothing for virtual address space on the Windows2000 OS.
0 Kudos
Steven_L_Intel1
Employee
550 Views
CVF should also have no problems with this. Does the error go away if you reduce the size of the data?
0 Kudos
Reply