Print Page | Close Window

Assertion occurred CXTPRecentFileListBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=21786
Printed Date: 23 December 2024 at 2:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Assertion occurred CXTPRecentFileListBox
Posted By: hiro-ta
Subject: Assertion occurred CXTPRecentFileListBox
Date Posted: 12 July 2013 at 12:44am
I am talking about Office 2013 style backstage view.

Assertion occurred in "CXTPRecentFileListBox::BuildItems()" when "Recent" menu item was selected.

-----------------------------------------------------------------------------
void CXTPRecentFileListBox::BuildItems()
{
CXTPRecentFileList* pRecentFileList = (CXTPRecentFileList*)GetRecentFileList();
ASSERT (pRecentFileList && pRecentFileList->m_strOriginal == _T("PinableRecentFileList"));
          :
-----------------------------------------------------------------------------

"pRecentFileList->m_strOriginal" is set to "", not "PinableRecentFileList".
My source is following...
-----------------------------------------------------------------------------
void CMainFrame::CreateBackstage()
{
          :
m_pageRecent.Create(CXTPRibbonBackstagePageRecent::IDD, this);
CXTPRibbonBackstageTab* pTabRecent = pView->AddTab(&m_pageRecent, ID_BACKSTAGE_RECENT);
pTabRecent->SetFlags(xtpFlagManualUpdate); // No Need update with Update handler
         :
-----------------------------------------------------------------------------

What should I do now?





Replies:
Posted By: jis
Date Posted: 21 October 2015 at 8:58am
Did you manage to solve this issue? I am having the same problem.


Posted By: olebed
Date Posted: 29 November 2016 at 7:46am
Hello,

Can you confirm this with last version (17.3) of ToolkitPro ?

CXTPRecentFileList is inherited from MFC CRecentFileList. So I can suppose CRecentFileList can change m_strOriginal on some conditions. I need more information to reproduce. Our RibbonSample doesn't arise such assert. It will help us in debuging if you reproduce issue with RibbonSample.

Regards,
 Oleksandr Lebed



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net