Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Please add memory leak fix
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Please add memory leak fix

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 616
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: Please add memory leak fix
    Posted: 13 September 2021 at 9:11am
In the source for v20.1.0 I have added the following:

XTPReportPaintManager.cpp line 391:

Replace:
#ifdef _XTP_INCLUDE_CONTROLS
// themed controls

if (m_bUseThemedControls && m_pControl)
{
m_pCombo = new CXTPComboBox();
ASSERT(m_pCombo);
m_pCombo->Create(WS_CHILD, CRect(0, 0, 0, 0), m_pControl, 1);
}
#endif

with

#ifdef _XTP_INCLUDE_CONTROLS
// themed controls

if (m_bUseThemedControls && m_pControl)
{
// Added by CPN
SAFE_DELETE(m_pCombo);

m_pCombo = new CXTPComboBox();
ASSERT(m_pCombo);
m_pCombo->Create(WS_CHILD, CRect(0, 0, 0, 0), m_pControl, 1);
}
#endif

Please consider adding this for future releases.

-cpede
Product: Xtreme ToolkitPro (20.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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.047 seconds.