我有计划像Start_method_2
使用该线程在WPF
private void do_my_method_click(object sender, RoutedEventArgs e)
{
//there are some variables and methods here
//works fine
ThreadPool.QueueUserWorkItem(Start_method);
// when added gives error this thread owned by other thread
ThreadPool.QueueUserWorkItem(Start_method_2);
}
Start_method(object state)
{
}
Start_method_2(object state)
{
}
的Start_method
输出我不知道究竟在何处我错了,我为WPF和C#中的新手。
“给出错误这个线程被其他线程拥有”请检查此,张贴_exact_错误信息(在不一个评论) – 2012-01-02 12:08:00
普通人,放轻松,他说他是新人。给他一些建设性的反馈。 – oleksii 2012-01-02 12:11:37