![]() ![]() ![]() Without both of these enabled (even if I just do one or the other), the exception isn't thrown and everything works okay. These two together cause the exception to trigger. MHWnd = CreateWindow(wndClass.lpszClassName, L"Test Application", style, CW_USEDEFAULT, CW_USEDEFAULT, clientRect.right, clientRect.bottom, NULL, NULL, hInstance, NULL) ĬhoosePixelFormat() is causing an invalid handle first-chance exception in the debugger when I am using the Application Verifier with only Handles and Cuzz enabled. MHWnd is obtained through CreateWindow() const HINSTANCE hInstance(static_cast(::GetModuleHandle(NULL))) SetPixelFormat(mHDC, format, &pixelFormat) Int format = ChoosePixelFormat(mHDC, &pixelFormat) The following code is causing the issue (I have left out a lot of code for brevity, but as I will explain, this code seems to work fine): mHDC = GetDC(mHWnd) I have a problem I just can't find information for.
0 Comments
Leave a Reply. |