Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Assertion occurred CXTPRecentFileListBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Assertion occurred CXTPRecentFileListBox

 Post Reply Post Reply
Author
Message
hiro-ta View Drop Down
Groupie
Groupie


Joined: 11 July 2013
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote hiro-ta Quote  Post ReplyReply Direct Link To This Post Topic: Assertion occurred CXTPRecentFileListBox
    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?


Back to Top
jis View Drop Down
Groupie
Groupie


Joined: 28 September 2015
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote jis Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2015 at 8:58am
Did you manage to solve this issue? I am having the same problem.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.