Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - Update problem with CXTPReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Update problem with CXTPReportControl

 Post Reply Post Reply
Author
Message
pmahonen View Drop Down
Newbie
Newbie


Joined: 22 April 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmahonen Quote  Post ReplyReply Direct Link To This Post Topic: Update problem with CXTPReportControl
    Posted: 22 April 2005 at 7:23am

I am building application that sets CReportRecord -controls(data) to CXTPReportControl (view). I have a thread that brings new data to view continuously(updates view) so that it removes old data and sets new data to view.

Error is occured when I select a row from the view at the same time when thread removes the old data and brings the new data in.
I have to get the row selected even if the update is going on!

Tell me please, is there a way to prevent this kind of error?

Back to Top
Jose5 View Drop Down
Groupie
Groupie
Avatar

Joined: 07 June 2005
Location: United States
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jose5 Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2011 at 10:41pm
I am having the same problem hope to have some help
IT WASENT ME!!!
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2011 at 3:03am
Hi;

In secondary thread create the new record object(s) and then post a user defined message to the report control (or its parent). In my app I'm using the doc/view architecture and so I handle the posted message in doc object and then update the report view by calling UpdateAllViews(). This works very well and neither performance issues nor occassional exceptions come up when I update or insert several records per second.
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.157 seconds.