Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - CXTPReportControl::SetVirtualMode
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedCXTPReportControl::SetVirtualMode

 Post Reply Post Reply
Author
Message
kubeos View Drop Down
Newbie
Newbie


Joined: 02 February 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote kubeos Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportControl::SetVirtualMode
    Posted: 02 February 2009 at 11:14am
Maybe I´ve overlook that in the documentation, but I found out
that CXTPReportControl::SetVirtualMode() is deleting the CXTPReportRecord-pointer when called again. So you have to be carefull: this pseudo-code crashes:

CXTPReportRecord* pVirtualRecord = new CXTPReportRecord;

GetRecordCtrl()->SetVirtualMode( pVirtualRecord, 0);
...
GetRecordCtrl()->SetVirtualMode( pVirtualRecord, 1);

use this instead:

CXTPReportRecord* pVirtualRecord = new CXTPReportRecord;
GetRecordCtrl()->SetVirtualMode( pVirtualRecord, 0);
...
pVirtualRecord = new CXTPReportRecord();
GetRecordCtrl()->SetVirtualMode( pVirtualRecord, 1);



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.203 seconds.