![]() |
CXTPReportControl Scrolling Very Slow |
Post Reply ![]() |
Author | |
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() Posted: 04 January 2007 at 11:46am |
As anyone noticed the report control scrolling being incredibly slow?
I have a user using my product and they scroll a report control with only 20/30 records and it is visibly a half-second beyond in its dragging ... even when using the mouse wheel. Totally unusable. Wherease 3 others (including me) its instant.
However, I tried the ReportSample and modified to call the "AddSampleRecords" function multiple times (12), and now that is really really slow even on my machine (its not got thousands of items).
It doesnt make any difference if i turn off grouping, or remove the virtual GetItemMetrics function so I dont know why it is slow.
The Grep sample works fine with 10,000 items in it (searching for "the" on my D drive).
I am confused, where should I look? Its not my code as your sample exhibit the slowdown?
Heres part of a profile I ran from VS6:
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I can only imagine such effect if you're building sample with the toolkit in Profile/Debug mode, or with profiling of some tool like BoundsChecker. Otherwise, it should be working fine. Any more details on changes in sources? Other details? -- WBR, Serge |
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
Its your standard 2006 Q2 sample source with the only change being me duplicating the "AddSampleRecords" function 12 times.
Its slow in debug and release ... i only added profiling afterwards to see where the slow down might be and for the purpose of this post.
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Is a Preview mode enabled?
|
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
Yes, preview is enabled |
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
Actually its slower with Preview disabled. Its real jerky. It seems to be less jerky the more columns I remove or whether its the type (num/date) of column thats causing the problem I am not sure
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Please let us also know your OS, screen settings (color depth) and processor speed
![]() -- WBR, Serge |
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
Win XP Pro SP2, 1600x1200 32bit, dual xeon 3.20ghz, 2gb ram (dell)
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Well, this doesn't actually help to identify a problem
![]() Could you please attach there a sample solution with your modifications implemented? This could probably help further... -- WBR, Serge |
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
As above, I just opened your ReportSample project and modified it to call the "AddSampleRecords" function multiple times (12).
That was all I did, and the view became quite slow. |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hi Dan,
have you got any response until your last post on this issue? Did you find a solution meanwhile?
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
No and no. Still waiting really ... why do you have a speed issue as well?
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Guys,
Sorry, but we simply can't reproduce this issue. It work pretty fine being added 12 and 12*12 times.... I still suspect that the problem is somewhere in your environment details. Locale, or screen resolution, or Service Pack not installed. Can you find something specific in your settings, what differs from regular WinXP SP2 English (US) ? -- WBR, Serge |
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
Nothing unusual with my system, standard WinXP Pro SP2. And on two other standard development machines with the same/similar configuration.
One machine is totally unusable and you cant scroll up/down without it lagging behind about 1/2 seconds, mine just slows down a bit. |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
I know that tools using hooks, such as Spy++, can crash the SkinFramework completely. Maybe you have advanced hooks installed? Perhaps it could be a good idea to list which AntiVirus you are using. No debugger in memory?
Just an idea...
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Yep, that's the good point.
Also, I've spent again spent a few hours trying to reproduce this problem. On workstations with all available for me configurations it works fast enough. Please run on the debugger and check the trace log for any exceptions. For example, what I saw a few years ago, COleDateTime::Format() sometimes (very seldom) throw exeptions on none English locales (or localized OS) (in my case it was French). May be on your machine there is also reproduced some unusual behavior which works fine on other configurations. Try to download latest version sample (10.4.2) and run on your "problem" machine. Does it works with the same performance as yours? Do you have some better profiler than VC Profiler, like DevPartner? Could you run the sample under that profiler and see where is a problem? Also try to send a screenshot there. -- WBR, Serge |
|
![]() |
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 |