Cygwin DirectX Vista Unhandled exception at ntdll.dll
안녕하세요
Unhandled exception at ntdll.dll 내용에 대한 조언을 구합니다.
=========================================================================================
#include
#include
#include
#include
#include
int main()
{
LPDIRECTDRAW7 lpdd = 0;
const GUID IID_IDirectDraw7ex =
{
0x15e65ec0,0x3b9c,0x11d2,{0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b}
};
printf("lpdd : %x \n",lpdd);
DirectDrawCreateEx(0,(void**)&lpdd,&IID_IDirectDraw7ex,0);
printf("lpdd : %x \n",lpdd);
Sleep(5000);
}
=========================================================================================
gcc -o testdirectx testdirectx.c ddraw.lib dxguid.lib
위와 같는 소스를 Cygwin 에서 컴파일 하여 실행하였습니다.
아래와 같은 오류 메시지가 뜹니다. (위소스를 VC++ 로 컴파일시 에러를 방생하지 않습니다.)
=========================================================================================
[Window Title]
Microsoft Windows
[Main Instruction]
testdirectx.exe의 작동이 중지되었습니다.
[Content]
문제가 발생하여 프로그램 작동이 중지되었습니다. Windows에서 해당 프로그램을 닫고 해결 방법이 있는지 알려줍니다.
[디버그(D)] [프로그램 닫기(C)]
=========================================================================================
Debug를 하여 VS2005로 디버그시
=========================================================================================
'testdirectx.exe': Loaded 'C:\Windows\System32\usp10.dll', Exports loaded.
'testdirectx.exe': Loaded 'C:\Windows\System32\atiumdag.dll', Exports loaded.
'testdirectx.exe': Loaded 'C:\Windows\System32\atiumdva.dll', Exports loaded.
Unhandled exception at 0x775d8e7a (ntdll.dll) in testdirectx.exe: 0xC0000710: 0xc0000710.
The thread 'Win32 Thread' (0x1488) has exited with code 0 (0x0).
First-chance exception at 0x775d8e7a (ntdll.dll) in testdirectx.exe: 0xC0000710: 0xc0000710.
Unhandled exception at 0x775d8e7a (ntdll.dll) in testdirectx.exe: 0xC0000710: 0xc0000710.
The thread 'Win32 Thread' (0xc48) has exited with code 0 (0x0).
'testdirectx.exe': Loaded 'C:\Windows\System32\psapi.dll', Exports loaded.
=========================================================================================
DirectDrawCreateEx(0,(void**)&lpdd,&IID_IDirectDraw7ex,0);
함수를 호출시 에러를 발생합니다.
적당한 조언을 해주시면 감사드리겠습니다.
댓글 달기