Print Page | Close Window

Please add memory leak fix

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=24206
Printed Date: 01 December 2021 at 1:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Please add memory leak fix
Posted By: cpede
Subject: Please add memory leak fix
Date 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++)



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