Print Page | Close Window

Update problem with CXTPReportControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=2146
Printed Date: 21 May 2024 at 12:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Update problem with CXTPReportControl
Posted By: pmahonen
Subject: Update problem with CXTPReportControl
Date 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?




Replies:
Posted By: Jose5
Date Posted: 31 January 2011 at 10:41pm
I am having the same problem hope to have some help

-------------
IT WASENT ME!!!


Posted By: mgampi
Date 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



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