I suspect you hit a well-known problem with property sheet.
When you call CPropertySheet::DoModal() or CPropertySheet::Create(), an exception might occur. The Output window displays the following message:
First-chance exception in <program.exe> (Comctl32.dll): 0xC0000005: Access Violation. 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.
More from Microsoft:
http://support.microsoft.com/kb/q158552/[
^]