- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My source code compiles OK, but I get this error message during linking.
Linker Tools Warning LNK4084
total image size size exceeds max (256MB); image may not run
The application exceeds the limit of 256 megabytes.
The application does not run. What should I do?
Linker Tools Warning LNK4084
total image size size exceeds max (256MB); image may not run
The application exceeds the limit of 256 megabytes.
The application does not run. What should I do?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, it depends on what the total image size actually is. Doesn't the message say? Windows 95 and NT4 prior to SP3 can't handle images with more than 256MB combined code and static data, but later versions can handle up to about 1.75GB. If the size is displayed as negative, then that means you have exceeded 2GB and you need a 64-bit processor and OS. (Or reduce your array sizes.)
BTW, there is a CVF Knowledge Base article on this error...
Steve
BTW, there is a CVF Knowledge Base article on this error...
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I put my program on a diet. The arrays are now a bit smaller. Everything now runs OK. Steve, thank you for your advice again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also consider using ALLOCATABLE arrays, which are especially useful if the actual used size of the array varies from run to run.
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