에러 : Invalid Address specified to RtlValidateHeap


malloc으로 할당한 놈을 free할 때 발생하는 현상이었다.

원인은 서로 다른 C RTL을 사용하고 있어서 이다
Project Property->C/C++->Code generation->runtime library를 같은 것으로 맞춰 주면 된다.

fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h 24
이는, MFC 프로그래밍시 솔루션 속성 설정에서 '공유 DLL 에서 MFC 사용' 항목이 선택되지 않았기 때문일 수 있다.
Debug 모드에서 "공유 DLL 에서 MFC 사용" 으로 했더라도,
Release 모드에서 다시 이 설정을 선택 적용해줘야 한다.
(Debug 모드와 Release 모드의 속성설정이 별도로 적용됨)

내가 듣고싶은 음악
내가 들려주고싶은 음악