Print Page | Close Window

CXTPReportControl with Thread Safe

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17821
Printed Date: 16 September 2024 at 4:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportControl with Thread Safe
Posted By: Jose5
Subject: CXTPReportControl with Thread Safe
Date Posted: 31 January 2011 at 10:38pm
Can You please guide me on
CXTPReportControl Best way to update through another thread
as I'm trying  and it keeps giving me random error and killing the application


thanks Dead



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



Replies:
Posted By: Oleg
Date Posted: 01 February 2011 at 2:28am
Hi,

best way is to send message to main thread and let it update/add new record.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mgampi
Date Posted: 01 February 2011 at 2:58am
Originally posted by oleg oleg wrote:

Hi,

best way is to send message to main thread and let it update/add new record.

Sorry,
but SendMessage is performed in caller thread. So to be thread safe PostMessage should be used, or any kind of sync mechanism (critical section, mutex, ...) is necessary.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: Jose5
Date Posted: 01 February 2011 at 4:19am
ok I'm using CXTPReportControl  with XTPReportDataManager->Bind with ADO configuration
the recordset is constantly being updated and the Report control  updating almost real time..
I have a Thread that Senses updates and call Recordset->Requery() Hook that calls CRstEvent::raw_FetchProgress where i refresh the Grid
when I try selecting rows randomly  it kill the app can you please help here


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


Posted By: mgampi
Date Posted: 01 February 2011 at 4:22am
Hi;

Thats exactly the reason why I'm NOT using data binding when threads are used!
It's not transparent enough for me.
So I can't help here...


-------------
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