AnsweredAssumed Answered

Calling ChoosePixelFormat causes Blue Screen on Windows 10 x64

Question asked by brettsr on Feb 12, 2016
Latest reply on Aug 10, 2016 by flori3000

I created very small test application for it. It crashed into Blue Screen at ChoosePixelFormat when I try to print (Ctrl+P) on any printer.

void CTest3View::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)

{

    PIXELFORMATDESCRIPTOR pfd ;

    memset(&pfd,0, sizeof(PIXELFORMATDESCRIPTOR)) ;

    pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR); 

    pfd.nVersion = 1 ;                          // Version number

    pfd.dwFlags = PFD_SUPPORT_OPENGL | PFD_SUPPORT_GDI | PFD_DRAW_TO_BITMAP;

    pfd.iPixelType = 0;

    pfd.cColorBits = 24;

    pfd.cDepthBits = 32 ;                       // 32-bit depth buffer

    pfd.iLayerType = PFD_MAIN_PLANE ;           // Layer type

 

    int nPixelFormat = ChoosePixelFormat(pDC->m_hDC, &pfd);

}

 

It crashed with the latest driver Crimson Edition 16.1.1 Hotfix.

Source code of the application are in the attachment or can be found at https://downlaod.dlubal.com/download/temp/Test3_Src.zip

 

-= Motherboard =-

Product: H55M-UD2H

Manufacturer: Gigabyte Technology Co., Ltd.

BIOS: Award Modular BIOS v6.00PG

 

-= CPU =-

CPU1

Name: Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz

Caption: Intel64 Family 6 Model 30 Stepping 5

 

-= Video =-

Video1

Name: AMD Radeon HD 5570

Driver: Crimson Edition 16.1.1 Hotfix

 

-= OS =-

Caption: Microsoft Windows 10 Pro

OS Version: Microsoft Windows NT 6.2.9200.0

Build: 6.2.9200.0

Is 64-bit: Yes

NET Framework: 4.0.30319.42000

UI Culture: en-US

Attachments

Outcomes