First chance exceptions in C++ UI classes

by Geert 24. May 2010 15:35

Recently, I was developing a CPropertySheet based application (the application development started in VS 6, but is now done in VS 2010). I got some "first-chance-exceptions" in the SetActivePage method of the PropertySheet.

The documentation of the SetActivePage method already warns about the first chance exceptions that you might get, but in my case, that didn't help solve the exceptions.

After some digging, I noticed that the font of the property pages was not consistent. Older objects had either "MS Sans Serif" or "MS Shell". However, all pages should have "Microsoft Sans Serif".

After changing the fonts of all dialog resources, all exceptions are now history.

How to solve the First chance exception in SetActivePage method of the CPropertySheet class

Tags:

C++

Comments (1) -

SaaS
SaaS United States
6/25/2010 3:08:49 AM #

thanks for the help...

Comments are closed

About the Author

Geert van Horrik is a independent freelance software developer since January 1st, 2007. Since then he was been working on several projects from C++ to C# (WPF, ASP.NET, etc). Currently he loves to write his software using WPF (or Silverlight if WPF isn't an option).

Lately, Geert is spending a lot of time on Catel, a free open-source MVVM Framework for WPF and Silverlight. Actually, it's more than "just" an MVVM Framework, it's a complete application library!