Using CXTPReportControl occurs an error |
Post Reply |
Author | |
butterflyhjh
Newbie Joined: 20 June 2007 Status: Offline Points: 1 |
Post Options
Thanks(0)
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!
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |