
Sending message to CPropertySheet crashes app in Release
This could be because of your message handler not defined properly. Your
OnMyMsg(..) handler should be defined as taking a WPARAM and LPARAM .
Something like..
CYourClass::OnMyMsg( WPARAM wParam, LPARAM lParam )
{
}
HTH.
--
Cheers
Check Abdoul
----------------
Quote:
> I have a simple Windows app written using VC++ 6.0. The
> app contains a CPropertySheet in wizard mode. If any of
> its CPropertyPage members sends a user defined message
> using either a SendMessage or a PostMessage to the parent,
> the message is handled properly by the CPropertySheet
> class, but crashes the app after exiting the message
> handler. This happens only when built in Release mode.
> e.g.
> GetParent()->SendMessage(WM_MYMSG);
> Any suggestions? Thanks.
> Tam