Ihave to increase thedimensions of the arrays and structures used by a program, in order to accommodate a larger problem. I have been gettinglinker warnings such as the following:
"LNK4084: total image size 1983963136 exceeds max (268435456); image may not run"
So far, theprogram was running on XP Pro despite this warning (albeit usingnearly 2GB of memory).
I had to increase the dimensions some more and now the program can't run at all. I am gettinga message that says
"programmyprogram.exe is not a valid Win32 application"
Are there any ways around this problem? Given the above message, I don't think this is a problem I can fix by increasing the paging file size.
I have tried to work around the problem bymaking some arrays allocatable. Unfortunately, some of the largest arrays are in named common blocks. From reading earlier postings, I understand I can use modules instead of common blocks to share allocatable arrays. I am new to allocatables and I have never understood modules. Can anyone provide a simple example of how to share an allocatable array between two subroutines? I would strongly prefernot to pass these arrays/structures as arguments.