Are Teechart (including series) threadsafe?
Is there any samples for that?
I want to handle teechart with sth. time spending in the boost::thread ..
Are Teechart (including series) threadsafe?
Re: Are Teechart (including series) threadsafe?
Hello,
No, TeeChart isn't thread safe.
See this reply:
http://www.teechart.net/support/viewtop ... afe#p62498
Also note the "Multi-CPU Parallel Threads" section in the What's New page.
No, TeeChart isn't thread safe.
See this reply:
http://www.teechart.net/support/viewtop ... afe#p62498
Also note the "Multi-CPU Parallel Threads" section in the What's New page.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Are Teechart (including series) threadsafe?
Thank you.
So you mean that it is OK if handling Teechart(including series) in one thread(not only the main thread)
as following.
So you mean that it is OK if handling Teechart(including series) in one thread(not only the main thread)
as following.
Code: Select all
Chart1->AutoPaint = false;
//Do sth. with Teechart and Series
Chart1->AutoPaint = true;
Chart1->Repaint();
Re: Are Teechart (including series) threadsafe?
But when I add data two TFastLineseries, some AV error like attachment arose.
- Attachments
-
- Thread error.png (30.79 KiB) Viewed 17708 times
Re: Are Teechart (including series) threadsafe?
If I mask "Series->Add ", it seems OK..
What is d2d1.dll, is it a part of Teechart?
What is d2d1.dll, is it a part of Teechart?
Re: Are Teechart (including series) threadsafe?
Further information, I replaced Add() with AddArray(), the error didn't arise...
Re: Are Teechart (including series) threadsafe?
Hello,
So you could try with:
Yes, this should be the way.elmec wrote:So you mean that it is OK if handling Teechart(including series) in one thread(not only the main thread)
as following.Code: Select all
Chart1->AutoPaint = false; //Do sth. with Teechart and Series Chart1->AutoPaint = true; Chart1->Repaint();
We'd need a simple example project we can run as-is to reproduce the problem here to further investigate this.elmec wrote:But when I add data two TFastLineseries, some AV error like attachment arose.
No, it isn't.elmec wrote:If I mask "Series->Add ", it seems OK..
What is d2d1.dll, is it a part of Teechart?
Both Add() and AddArray() call the same AddXY function. The only difference is that AddArray() calls BeginUpdate() before adding the values and EndUpdate() when finished.elmec wrote:Further information, I replaced Add() with AddArray(), the error didn't arise...
So you could try with:
Code: Select all
Series->BeginUpdate;
Series->Add(yourValue);
Series->EndUpdate;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |