Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Report Control is slow when removing all items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control is slow when removing all items

 Post Reply Post Reply
Author
Message
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 216
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post Topic: Report Control is slow when removing all items
    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
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 216
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 216
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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).

Back to Top
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 216
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post 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 :
 
Thank you in advance,
Regards,
Sergio
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.108 seconds.