목록memory (2)
no swim no life
DLL 내부(B.dll)에서 선언한 메모리를 어플리케이션(A.exe)에서 해지하려 할 때 발생. 서로 다른 메모리 할당 규칙( Z != X )을 사용할 수 있는, A와 B 사이에 메모리 할당/해지가 발생했을 경우 Debug 모드라면 할당 규칙에 대한 검사 중 프로그램이 종료 될 것이다. (아래 코드) /* * If this ASSERT fails, a bad pointer has been passed in. It may be * totally bogus, or it may have been allocated from another heap. * The pointer MUST come from the 'local' heap. */ _ASSERTE(_CrtIsValidHeapPointer(pUserData)..
Memory Size ( Kb ) Page ( 4Kb ) Array (Stack) 8 Kb 2 page kmalloc (Heap) 128 Kb 32 page __get_free_page( ) 2048 Kb 512 page vmalloc unlimited unlimited 메모리 관련 설정 확인 [root@devlinux iptv] # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited max nice (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 8192 max locked memory (kbytes, -l) 32 max memory size (kbytes,..