![]() |
Modeless CXTPPropertySheet crash |
Post Reply
|
| Author | |
larryp
Groupie
Joined: 15 January 2005 Location: United States Status: Offline Points: 61 |
Post Options
Thanks(0)
Quote Reply
Topic: Modeless CXTPPropertySheet crashPosted: 06 February 2008 at 1:16pm |
|
I am using version 11.2.2
If I create a CXTPPropertySheet with a CXTPPropertyPageListNavigator as a modelss dialog, the page does not show and if I click on it I get a crash.
I modified the CodeJock PropertySheet sample as follows:
void CPropertySheetDlg::OnButtonList2() { CXTPPropertySheet* ps = new CXTPPropertySheet(_T("CXTPPropertyPageListNavigator Sample")); CXTPPropertyPageListNavigator* pList = new CXTPPropertyPageListNavigator(); pList->SetListStyle(xtListBoxOffice2007); ps->SetNavigator(pList); CTabLongPage pageLong; ps->AddPage(&pageLong); ps->SetResizable(); ps->SetPageSize(CSize(250, 180)); // in dialog units ps->Create( this ); //ps->DoModal();}
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 February 2008 at 12:41am |
|
Hi,
Obviously problem because pageLong is destroed after function exit scope. Create it dynamically or move to member variables of derived CXTPPropertySheet class.
See OnButtonTree method.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
larryp
Groupie
Joined: 15 January 2005 Location: United States Status: Offline Points: 61 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 February 2008 at 8:29am |
|
You are right. That is obvious. Sorry for wasting your time.
Larry
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |