[ROOT] Unexpected Async Reply

From: Thomas Bretz (Thomas_Bretz@physik.tu-muenchen.de)
Date: Sun Dec 08 2002 - 13:18:50 MET


Hi all,

I'm using gVirtualX->CopyArea to copy a bitmap (a picture from a CCD) into
a TGFrame from a 'second' thread. This is done 25 times a second. Because
it seems, that X is not Thread safe I alwys get an 'Unexpected async
reply'. Now I tried to use an Async Timer to update the picture on the
screen, but this timers are only 'checked' if an event is posted to the
event-queue. Posting an event 25 times a second also results in an
immediate call to gVirtualX->Copy area which results in the same error.

How can I use gVirtualX->CopyArea to update the screen at any time I want
(or let's say n-times a second) without colliding with X calls in another
thread (the root main thread I guess). It must not be 100% in time and it
is not necessary, that all pictures are really displayed.

For a fast answer I would be very glad, because I'm in hurry.

Best regards,
Thomas.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:23 MET