TeeChart v8 and multithreading
Posted: Fri Dec 07, 2012 11:06 am
In this forum it has been made clear that TeeChart is not thread safe in a sense that data in series or TeeChart cannot be updated from other threads if TeeChart is being drawn.
Is it possible and safe however to update data in series and add new series from multiple threads if TeeChart is not being drawn i.e. automatic drawing is disabled and drawing is requested by client code? Is TeeChart’s series object container class access thread safe f.ex. by using critical sections in TeeChart code? I am aware that handling series removal from TeeChart if multiple threads are running is a bit of a challenge for client code because series’ indexes may change as a result but if we dismiss that and assume that adding a new series to TeeChart is not changing existing series’ indexes i.e. new series are always added to the tail of the TeeChart’s series object container class, is this scenario possible?
We are using TeeChart Pro v8 ActiveX control.
Is it possible and safe however to update data in series and add new series from multiple threads if TeeChart is not being drawn i.e. automatic drawing is disabled and drawing is requested by client code? Is TeeChart’s series object container class access thread safe f.ex. by using critical sections in TeeChart code? I am aware that handling series removal from TeeChart if multiple threads are running is a bit of a challenge for client code because series’ indexes may change as a result but if we dismiss that and assume that adding a new series to TeeChart is not changing existing series’ indexes i.e. new series are always added to the tail of the TeeChart’s series object container class, is this scenario possible?
We are using TeeChart Pro v8 ActiveX control.