public static void Init() { if (_isinit) return; _isinit = true; thread = new Thread(CreateComponent); thread.SetApartmentState(ApartmentState.STA); thread.Start(null); AppDomain.CurrentDomain.FirstChanceException += (a,b) => { }; }