Print Page | Close Window

Using CXTPReportControl occurs an error

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=7416
Printed Date: 22 November 2024 at 7:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using CXTPReportControl occurs an error
Posted By: butterflyhjh
Subject: Using CXTPReportControl occurs an error
Date Posted: 20 June 2007 at 11:32am
Hi EveryBody,
//My code
CXTPReportControl *m_pReport;
m_pReport->GetRecords()->RemoveAll();
m_pReport->Populate();
 
//Errors In Stack
//The program exited here.
 
MFC42D!operator delete+0xf
MFC42D!CString::FreeData+0x18
MFC42D!CString::~CString+0x39
Codejock_ToolkitPro_Mfc60_v9_80D!CXTPReportRecordItemText::~CXTPReportRecordItemText+0x34
mds_guictrld!CXTPReportRecordItemText::'scalar deleting destructor'+0x34
MFC42D!CCmdTarget::OnFinalRelease+0x52
MFCO42D!CCmdTarget::InternalRelease+0x8e
Codejock_ToolkitPro_Mfc60_v9_80D!CXTPReportRecord::RemoveAll+0x46
Codejock_ToolkitPro_Mfc60_v9_80D!CXTPReportRecord::~CXTPReportRecord+0x3a
MFC42D!CCmdTarget::OnFinalRelease+0x52
MFCO42D!CCmdTarget::InternalRelease+0x8e
Codejock_ToolkitPro_Mfc60_v9_80D!CXTPReportRow::~CXTPReportRow+0x5a
Codejock_ToolkitPro_Mfc60_v9_80D!::'vector deleting destructor'+0x57
MFC42D!CCmdTarget::OnFinalRelease+0x52
MFCO42D!CCmdTarget::InternalRelease+0x8e
Codejock_ToolkitPro_Mfc60_v9_80D!CXTPReportRows::Clear+0x63
Codejock_ToolkitPro_Mfc60_v9_80D!CXTPReportControl::Populate+0xa9
 
I need help!
Thanks!



Replies:
Posted By: sserge
Date Posted: 06 July 2007 at 5:12pm
Hi,

Looks like somewhere before this operation you've already deleted corresponding Record Item with its contents, and Report there tries to delete it twice.

--
WBR,
Serge



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