Article ID: 158552 - View products that this article applies to.
This article was previously published under Q158552
When you call CPropertySheet::DoModal() or CPropertySheet::Create(), an exception might occur. The Output window displays the following message:
The exception is expected and is handled by the operating system. This will only occur the first time you call either of these methods and subsequent calls will not generate this first-chance exception.
First-chance exception in <program.exe> (Comctl32.dll): 0xC0000005: Access Violation.
The CommCtl32.dll tries to modify the resources for the pages. Because the resources are typically in read-only sections, this throws a first-chance exception that will be caught by the operating system. The operating system handles this exception and makes the resources writeable and then everything completes normally. Because the resources are now writeable, all subsequent calls complete without this first-chance exception
The first-chance exception can be ignored because it is safely handled by the operating system.
To prevent the exception, use one of the following methods:
Note When you change the resources to Read/Write, the resources might be written to a page file.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/126630/ )Resource sections are read-only
Article ID: 158552 - Last Review: November 21, 2006 - Revision: 4.1