Microsoft KB Archive/233390

{|
 * width="100%"|

BUG: First Chance Exceptions When Calling ChoosePixelFormat

 * }

Q233390

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * the operating system: Microsoft Windows 95
 * the operating system: Microsoft Windows 98

-

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 that are 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 kbGrpDSGDI

Issue type : kbbug

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch