Print Page | Close Window

CXTPReportRecords::m_pControl is NULL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19699
Printed Date: 16 November 2024 at 12:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportRecords::m_pControl is NULL
Posted By: xcentric
Subject: CXTPReportRecords::m_pControl is NULL
Date 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



Replies:
Posted By: ABuenger
Date Posted: 03 May 2012 at 8:30am
Hi,

this has been fixed for the next release.

Andre



-------------
Codejock support



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