사는게 힘들구만

블로그 이미지
by 아이즈원 짱

TAG CLOUD

  • Total hit
  • Today hit
  • Yesterday hit

warning LNK4084 : total image size ??????? exceeds max (268435456); image may not run

 

정적메모리( 배열 ) 의 크기가 256 M 를 초과하게 되면 생기는 문제

동적 메모리로 할당해서 해결 하던지 아니면  밑에 처럼 해결하던지....

 

 

기본 : 256 MB,

확장 : 1.75GB

옵션에서 확장 : /ignore:4084

 

 Project -> Settings -> Link    At the end of the  Project Options box

  /ignore:4084

 

 

Description: When linking an application which contains large arrays, the linker gives the warning "LNK4084 - total image size exceeds max (268435456); image may not run".

 

Explanation: Windows 95 and Windows NT 4.0 have a limit for the total size of static code and data of 256MB.  If the amount of static code and data exceeds this size, the image may not execute.  This is a limitation in the operating system and not in Visual Fortran or its tools.  The most common cause of large static data is large local or COMMON arrays. The linker issues an informational warning in this case to alert! you of the potential problem.

However, if the actual image size is displayed as a negative value, that means that the image size exceeds 2GB and your program will not run on any version of 32-bit Windows.

 

Solution: For Windows NT 4.0, install Microsoft's Windows NT Service Pack 3 (or later).  This raises the limit on static code and data to 1.75GB.  However, the linker is not modified by this update and will continue to issue the warning, which can be ignored.  The limit on Windows 98, Windows 2000 and Windows XP is 1.75GB, the same as Windows NT 4.0 with Service Pack 3 - if your application will be not be running on Windows 95, or on Windows NT 4.0 prior to SP3, and the actual image size is not displayed as a negative value, you can ignore this message.

For Windows 95, Microsoft has not released an update which raises the limit. 

If you wish to prevent the message from being issued when you link, select Project..Settings..Link. At the end of the Project

 

Options box, type in:

/ignore:4084

An alternative is to make the large arrays ALLOCATABLE.   Dynamically allocated data is not subject to the 256MB limit.

 

 


AND

ARTICLE CATEGORY

분류 전체보기 (109)
컴퓨터 (38)
프로그램 (21)
모바일 (14)
게임 (2)
자동차 (10)
자료실 (3)
건강 (4)
여행 (3)
정치 경제 (3)
기타 (7)
소녀시대 (1)

RECENT ARTICLE

RECENT COMMENT

RECENT TRACKBACK

CALENDAR

«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

ARCHIVE