Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - CXTPReportControl crashed !
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportControl crashed !

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

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportControl crashed !
    Posted: 12 April 2009 at 9:25pm
A CXTPReportRecord in the CXTPReportControl, that was SetVisible(FALSE).
Then Delete the record will cause a crash !
To avoid the problem, I should SetVisible(TRUE) and Populate() before delete it !
Back to Top
inmaurik View Drop Down
Groupie
Groupie


Joined: 13 July 2007
Location: Netherlands
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote inmaurik Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2009 at 9:39am
Shouldn't you call RemoveRecordEx when you want to remove a record without calling Populate? After you have removed the record (with bRemoveFromParent = TRUE) you can delete the record.


virtual BOOL RemoveRecordEx(
    CXTPReportRecord* pRecord,     // Pointer to the record
    BOOL bAdjustLayout = TRUE,     // If TRUE AdjustLayout will be called
    BOOL bRemoveFromParent = TRUE // If TRUE the record is to be removed from the parent
);
Product: Xtreme SuitePro (MFC) version 13.3.1
Platform: Windows 7 Enterprise (64bit)
Language: C++ (Visual Studio 2008 SP1)
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.125 seconds.