Print Page | Close Window

[SOLVED] New ASSERT with the 15.0.1 Report

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=17852
Printed Date: 29 September 2024 at 5:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] New ASSERT with the 15.0.1 Report
Posted By: Daniel
Subject: [SOLVED] New ASSERT with the 15.0.1 Report
Date Posted: 09 February 2011 at 3:38pm

There is something strange with the ReportCtrl. I found this in CXPReportPaintManager.cpp line 821

 CSize sizeBitmap = pPaintManager->DrawCollapsedBitmap(NULLpDrawArgs->pRowrcBitmap);

As you can see the first parameter is NULL which should be a DC…. Here is the beginning of DrawCollapsedBitmap:

 CSize CXTPReportPaintManager::DrawCollapsedBitmap(CDCpDCconst CXTPReportRowpRowCRectrcBitmap)
{
        if (m_columnStyle == xtpReportColumnResource)
        {
                //Check for resource image dll
                 CXTPResourceImagepImage = XTPResourceImages()->LoadFile(_T("ReportExpandButton"));
                 if (pImage)
                 {

........
pImage->DrawImage(pDCrcDestpImage->GetSource(nState, 4));
Since the DC is needed for painting is will assert in wingdi!!!
Any help would be great!
 



Replies:
Posted By: Daniel
Date Posted: 10 February 2011 at 1:15am
Any idea why you call DrawCollapsedBitmap with NULL for the DC pointer????


Posted By: Oleg
Date Posted: 10 February 2011 at 2:53am
Thanks, fix is comming.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Daniel
Date Posted: 10 February 2011 at 3:00am
Great!!!!! When can we expect the fix????



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