Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] New ASSERT with the 15.0.1 Report
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] New ASSERT with the 15.0.1 Report

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


Joined: 20 June 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Daniel Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] New ASSERT with the 15.0.1 Report
    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!
 
Back to Top
Daniel View Drop Down
Groupie
Groupie


Joined: 20 June 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Daniel Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2011 at 1:15am
Any idea why you call DrawCollapsedBitmap with NULL for the DC pointer????
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2011 at 2:53am
Thanks, fix is comming.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Daniel View Drop Down
Groupie
Groupie


Joined: 20 June 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Daniel Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2011 at 3:00am
Great!!!!! When can we expect the fix????
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.