Create an instance AxTChart in my worker thread
Posted: Thu Jul 16, 2009 9:01 pm
I would like to create an instance o AxTChart inside my class (I'm working with C#), setup some plots, get an image. The problem is that this function is inside a method being executed in a worker thread and there is no Form associated with it.
When I do "new AxTChart()" I get an thread exception that says that I "cannot create an instance of the ActiveX control because the current segment is not in an STA (single-threaded apartment)".
What should I do?
When I do "new AxTChart()" I get an thread exception that says that I "cannot create an instance of the ActiveX control because the current segment is not in an STA (single-threaded apartment)".
What should I do?