I am developing a Photon app consisting of two threads. The main thread
handles all the user interaction and the second (message) thread receives
Neutrino pulses. The main thread has a PtRaw on top of a PtOSContainer that
draws a graph. The idea is that when a Neutrino pulse arrives, signalling
that new data has been put into a buffer, the graph gets updated.
However, if I call PtDamageWidget( ABW_Graph) from within the message thread
the graph is not redrawn. Yes, I am using PtEnter/PtLeave. If I set up a
timer in the primary thread and call PtDamageWidget( ABW_Graph) then I
obtain a regular update of the graph. In both cases the graph is redrawn
correctly if it is damaged by moving other windows in front of it.
What am I doing wrong?
Jim Douglas