Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - HOW to free memory from removed ReportRecords ??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HOW to free memory from removed ReportRecords ??

 Post Reply Post Reply
Author
Message
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Topic: HOW to free memory from removed ReportRecords ??
    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 ?
 
Back to Top
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2010 at 6:18pm
Please, any hint ?
 
Thanks!
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2010 at 5:16am
Perhaps Populate() performs the actual delete operation? Not sure...
PokerMemento - http://www.pokermemento.com/
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.172 seconds.