Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - CXTPReportRecords::m_pControl is NULL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportRecords::m_pControl is NULL

 Post Reply Post Reply
Author
Message
xcentric View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote xcentric Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportRecords::m_pControl is NULL
    Posted: 26 April 2012 at 4:15pm
CXTPReportRecord::GetChilds() is implemented as follows:

CXTPReportRecords* CXTPReportRecord::GetChilds()
{
    if (m_pChildren == NULL)
        m_pChildren = new CXTPReportRecords(this);

    if (GetRecords())
    {
        BOOL bCase = GetRecords()->IsCaseSensitive();
        m_pChildren->SetCaseSensitive(bCase);
    }
    return m_pChildren;
}
As you can see, this method creates an instance of CXTPReportRecords and assigns it to pChildren.
The problem is
CXTPReportRecords::m_pControl member is not assigned here and will stay NULL.
I think you should change first two lines:

   if (m_pChildren == NULL)
   {
        m_pChildren = new CXTPReportRecords(this);
        m_pChildren->m_pControl = m_pControl;
   }


Toolkit Pro 15.1.2
Windows 7 x64
Visual Studio 2008
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2012 at 8:30am
Hi,

this has been fixed for the next release.

Andre

Codejock support
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.156 seconds.