BUG: First Chance Exceptions When Calling ChoosePixelFormat

ID: Q233390


The information in this article applies to:


SYMPTOMS

The following error is displayed in the debug window of Visual C++:

First-chance exception in myapp.exe (GDI32.DLL): 0xC0000005: Access Violation.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

OpenGL applications calling ChoosePixelFormat may encounter Access Violations (AV) during debugging. After calling ChoosePixelFormat, the debug window will display one or more AVs in Gdi32.dll. The number of AVs correlates to the number of pixel formats for the device being used. This is a benign behavior that appears only with some video drivers.

Additional query words:


Keywords          : kbGDI kbOpenGL kbSDKPlatform kbSDKWin32 kbGrpGDI 
Version           : WINDOWS:
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: May 26, 1999