Chart multiple threads access
Posted: Wed Jun 16, 2010 3:07 pm
Hi,
I have a question regarding usage of teechart within multiple threads. I have two chart which are very similar one to each other. Actually one is descendant of other. The descendant chart has logarithmic bottom scale. I have vertical cursors on both. If I move cursor on ascendant chart everything works ok regardless if i move cursor on descendant chart i get teechart access violation which happens somewhere in teechart. It is also very hard to catchbug while it is not always possible to repeat it. Sometimes works and sometimes it crashes. I isolated almost everything and now I am suspecting that there must be somehow multi thread access problem. I have one thread which is populating graphs with some data and other thread does the rest job (mouse events etc...) Is it possible to lock chart that only one thread would have access at same time? Something similar like with critical section.
I have a question regarding usage of teechart within multiple threads. I have two chart which are very similar one to each other. Actually one is descendant of other. The descendant chart has logarithmic bottom scale. I have vertical cursors on both. If I move cursor on ascendant chart everything works ok regardless if i move cursor on descendant chart i get teechart access violation which happens somewhere in teechart. It is also very hard to catchbug while it is not always possible to repeat it. Sometimes works and sometimes it crashes. I isolated almost everything and now I am suspecting that there must be somehow multi thread access problem. I have one thread which is populating graphs with some data and other thread does the rest job (mouse events etc...) Is it possible to lock chart that only one thread would have access at same time? Something similar like with critical section.