[solved] Report Control crash on removing selected |
Post Reply |
Author | ||
jmarcosf
Groupie Joined: 22 June 2006 Status: Offline Points: 27 |
Post Options
Thanks(0)
Posted: 24 August 2016 at 10:48am |
|
I think I've found a bug on Report Control.
On a Report Control, if you select several items and then you want to delete them you get a malfunctioning behaviour. Using RemoveRowEx() method will not remove all of selected rows and if you use RemoveRecordEx() application will crash. This can be viewed using ReportControl.ReportSample sample as following: Step 1- Select REPORT CONTROL menu item, then select "Quality Assurance->Notifications". Step 2- Select Item 0, 0 to item 19,0. Step 3- Press Remove Row Ex button. Only a few rows will be deleted. Step 4- After restarting the application and selecting the same groups of rows but this time you press Remove Record Ex button application will crash. |
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
Hello jmarcosf,
I think we fixed this recently. Please check this with next beta or release. Problem was in method CXTPReportSection::RefreshIndexes(int nIndexStart). Code with using variable bSelected should be removed (include if blocks). It is for properly selection with pressed Ctrl button. And to make proper indexes refreshing on removing rows we add new method OnDeletedRefreshIndexes
Regards, Oleksandr Lebed |
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
also different methods of removing rows and records had different results (crashes or not)
next sample method removes incorrect before and after fix Samples\ReportControl\ReportSample\TestNotificationsDlg.cpp
next code is correct
|
||
jmarcosf
Groupie Joined: 22 June 2006 Status: Offline Points: 27 |
Post Options
Thanks(0)
|
|
Now OnRemoveRoEx() works fine for me.
Thanks a lot! |
||
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 |