【发布时间】:2010-11-15 10:56:26
【问题描述】:
我的场景:
void Installer1_AfterInstall(object sender, InstallEventArgs e)
{
try
{
MainWindow ObjMain = new MainWindow();
ObjMain.Show();
}
catch (Exception ex)
{
Log.Write(ex);
}
}
我收到错误“调用线程必须是 STA,因为许多 UI 组件都需要这个”
我在做什么?
【问题讨论】: