Print Page | Close Window

HOW to free memory from removed ReportRecords ??

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


Topic: HOW to free memory from removed ReportRecords ??
Posted By: unknow
Subject: HOW to free memory from removed ReportRecords ??
Date Posted: 14 February 2010 at 9:57am

Hi. I am developping an application with a document interface based on the report control.

I observed that when a CXTPReportRecord is removed using the CXTPReportRecords::RemoveRecord, the associated memory is not released.
 
I thought this could be my code, but I looked at the ReportSample application and it is the same behavior when doing a CUT operation.
 
I tried calling delete pRecord after calling pRecords->RemoveRecord(pRecord) but it fails on the MFC CCmdTarget::InternalRelease function.
 
Any hint ?
 



Replies:
Posted By: unknow
Date Posted: 17 February 2010 at 6:18pm
Please, any hint ?
 
Thanks!


Posted By: znakeeye
Date Posted: 18 February 2010 at 5:16am
Perhaps Populate() performs the actual delete operation? Not sure...

-------------
PokerMemento - http://www.pokermemento.com/



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