Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - BUG: Report control sometimes freezes!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: Report control sometimes freezes!

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

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUG: Report control sometimes freezes!
    Posted: 26 June 2012 at 4:42pm
Hello;

We're using several instances of the report control within our app. Sometimes one of these report controls freezes drawing. It does not update it's states (drawing freezes). E.g. the vertical scrollbar is visible and can be moved by mouse but the content is always the same. Also when clicking into the control the selection does not change, but when using the keyboard arrow keys to navigate I receive change events in the owner of the control.

Firts we thought that we forgot to call EndUpdate() after a BeginUpdate() call, but we always use CXTPReportControl::CUpdateContext guards throughout the whole application. So it definitely can't be within our app.
I just checked the XT source code and found out that in several places the CXTPReportControl::CUpdateContext isn't used and I found functions with EndUpdate()/BeginUpdate() (in this order) calls. Perhaps here's the problem...

Has anyone else encountered the same problem? How did you solve this?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mihey View Drop Down
Groupie
Groupie
Avatar

Joined: 14 May 2003
Location: Germany
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote mihey Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2014 at 4:56am
Hi,
I‘ve experienced a similar problem with my Report Control. After some debugging I’ve found out, that the effect had something todo with xtpReportScrollModeSmooth ScrollMode in a very special case (a row in a hidden group changes his parent).

Sometimes the EnsureVisibleSmooth in the CXTPReportSection::EnsureVisible method crashes and the caller SetFocusedRow method does not have an EndUpdate executed.
Do you also use xtpReportScrollModeSmooth scroll mode? Try to switch to xtpReportScrollModeBlockCount instead. Perhaps that would be a workaround.

Best Regards,
Mikhail


Product: Xtreme Toolkit Version 16.2.0

Platform: Windows 7 (64bit)

Language: Visual C++ 2003
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2014 at 7:26am
Hello;

I'm not using the xtpReportScrollModeSmoothscroll mode!
But I still have the problems.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mcmastl View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 April 2015
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcmastl Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2015 at 12:55pm
Hi Martin,
Thank you for letting us know of this issue.  We have let our development team know to look further into the issue.  If the matter has been resolved please let us know. 
Luke McMasters, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.219 seconds.