![]() |
CXTPReportControl with Thread Safe |
Post Reply ![]() |
Author | |
Jose5 ![]() Groupie ![]() ![]() Joined: 07 June 2005 Location: United States Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() 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 ![]() |
|
IT WASENT ME!!!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
best way is to send message to main thread and let it update/add new record.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
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 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
Jose5 ![]() Groupie ![]() ![]() Joined: 07 June 2005 Location: United States Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
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!!!
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
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 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
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 |