Print Page | Close Window

Report Control is slow when removing all items

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=11216
Printed Date: 16 November 2024 at 5:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control is slow when removing all items
Posted By: Sergio
Subject: Report Control is slow when removing all items
Date 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



Replies:
Posted By: markr
Date Posted: 26 June 2008 at 12:49pm
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.


Posted By: Sergio
Date Posted: 30 June 2008 at 4:53am
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


Posted By: Sergio
Date Posted: 02 July 2008 at 12:12pm
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


Posted By: markr
Date Posted: 03 July 2008 at 9:52am
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).



Posted By: Sergio
Date Posted: 09 July 2008 at 4:16am
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 :
https://forum.codejock.com/forum_posts.asp?TID=8741&PID=31142#31142 - https://forum.codejock.com/forum_posts.asp?TID=8741&PID=31142#31142
 
Thank you in advance,
Regards,


-------------
Sergio



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net