public void ShowWindow() { SafeThread thread = new SafeThread( delegate() { logWindow = new LogWindow(this, logger, moduleInfo.FriendlyName()); logWindow.ShowDialog(); }, "Launching window for " + ToString(), logger); thread.SetApartmentState(System.Threading.ApartmentState.STA); thread.Start(); }