Report Control is slow when removing all items |
Post Reply |
Author | |
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
Posted: 26 June 2008 at 10:29am |
Hi, Do you know why the Report Control is so slow when it is destroyed or when all items are removed ?
You did a special method for batch Rows allocation that greatly accelerates the add of items, but deallocation remains very slow.
You may see this problem in your sample "ReportCustomHeap".
It's a little strange, because it doesn't seem to be linked with memory allocation (only a small amount of memory is used). Perhaps there's some code in your destructors.
Thank you in advance for your answer,
Regards,
|
|
Sergio
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
Are you just seeing this behavior in debug builds? If so, such behavior is normal and you should not see similar delays in your release build.
|
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
No, it does the same in Release builds.
You may reproduce this behavior with your sample "ReportCustomHeap".
Try to add several records, then remove all the records or close the document.
|
|
Sergio
|
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
Hi,
I have just downloaded and checked this issue with the MFC Codejock Release 12.0.0.
It's still slow with this version in Release mode.
|
|
Sergio
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
I ran the ReportCustomHeap sample application, added 200,000 records via repeated use of the "Batch Add 20,000 Records" menu item. If I then "Remove All" records or close the document, everything clears up fairly quickly (takes roughly one second or so).
|
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
Hi,
Yes, you're right, sorry and thank you.
Now I know why I had this problem : it is due to the Release build ran in debug mode.
Could you please also give me an answer for this post :
Thank you in advance,
Regards,
|
|
Sergio
|
|
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 |