G
Guest
I have an SDI document that runs fine in Debug Mode but crashes in Release Mode. I have set up my project so I can debug in Release Mode. The project has a tab view
Here is what is happening
OnInitDialog calls this
// parent is Tab Control, grandparent is Tab Vie
m_pTabViewWnd = (CTabVw *)GetGrandParent()
//this is the function
CWnd* CSmsPropPage::GetGrandParent(
CWnd *parent= GetParent(); // tab control is the paren
return parent->GetParent(); // tab view is the grandparen
In the GetGrandParent() function the pointers are not valid in Release Mode. In fact the call to this function takes me into a function called CWnd* PASCAL CWnd::FromHandle(HWND hWnd), then returns. It doesnt step into GetGrandParent() in Release Mode
I dont know why. Can someone help me out?
Jerry
Here is what is happening
OnInitDialog calls this
// parent is Tab Control, grandparent is Tab Vie
m_pTabViewWnd = (CTabVw *)GetGrandParent()
//this is the function
CWnd* CSmsPropPage::GetGrandParent(
CWnd *parent= GetParent(); // tab control is the paren
return parent->GetParent(); // tab view is the grandparen
In the GetGrandParent() function the pointers are not valid in Release Mode. In fact the call to this function takes me into a function called CWnd* PASCAL CWnd::FromHandle(HWND hWnd), then returns. It doesnt step into GetGrandParent() in Release Mode
I dont know why. Can someone help me out?
Jerry