Why do i get System.Threading.ThreadStateException?
void setupTree(TreeView tv, MyObj o)
{
tv.Invoke((MethodInvoker)delegate
{
tv.Nodes.Clear();
tv.Nodes.Add("<root>").Tag = o;
tv.SelectedNode = tv.Nodes[0]; //it happens here
});
}