This is a migrated thread and some comments may be shown as answers.

The calling thread must be STA

4 Answers 1143 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
John Giblin
Top achievements
Rank 1
John Giblin asked on 29 Mar 2011, 10:00 PM
I am getting this when I copy the Busy Indicator example

The calling thread must be STA, because many UI components require this.

Does anyone have any ideas

4 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 04 Apr 2011, 02:46 PM
Hi John,

 
Please make sure you use Dispatcher class in order to access UI components.

If this doesn't help, can you please give us more information about your scenario? Which example do you use? 

Best wishes,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
fred williams
Top achievements
Rank 1
answered on 02 May 2011, 05:02 AM
Could you please provide an example of using the dispatcher class to access a UI component? I'm trying to display a busy indicator while repopulating a treeview when the user double clicks a treeviewitem and I'm receiving the same STA error.

I get the error when I try to instantiate a new RadTreeView object.
0
George
Telerik team
answered on 05 May 2011, 10:04 AM
Hi John,

 
Thank you for contacting us.

You can find the attached sample project. On a button click new items for the RadTreeView are generated and added while the busy indicator is shown. On a second click, the process is stopped. 

I hope this helps.


Kind regards,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sandi Markon
Top achievements
Rank 1
answered on 19 Sep 2012, 09:29 AM
 
Tags
BusyIndicator
Asked by
John Giblin
Top achievements
Rank 1
Answers by
George
Telerik team
fred williams
Top achievements
Rank 1
Sandi Markon
Top achievements
Rank 1
Share this question
or