[에러 메세지]
test dword ptr [eax],eax ; probe page.
[에러 원인]
MAIN_DATA pMainInfo;
구조체 크기가 정해진 스택 크기보다 커서 에러 발생
[해결 방안]
MAIN_DATA *pMainInfo;
pMainInfo = new MAIN_DATA[1];
memset(pMainInfo, 0, sizeof(MAIN_DATA));
delete(pMainInfo);
포인트를 사용하여 크기를 정해준 후에 사용
[참고]
'Programming > Error Message' 카테고리의 다른 글
error: ‘for’ loop initial declaration used outside C99 mode (0) | 2017.07.19 |
---|---|
'/ZI' and '/Gy-' command-line options are incompatible (0) | 2017.05.17 |
LNK2001 unresolved external symbol "struct HWND__ * hCommWnd" (?hCommWnd@@3PAUHWND__@@A) (0) | 2017.04.28 |
Run-Time Check Failure #2 - Stack around the variable 'a' was corrupted. (0) | 2017.02.28 |
[OpenCV] ACCESS_MASK is ambiguous (0) | 2017.02.13 |