@mikhail-barghere is code when loop 99 is ok , loop 9999 will throw 'RuntimeCallableWrapper' privateasyncvoidstart_Click(objectsender,EventArgse){Threadt=newThread(()=>{ILoglog=LogManager.GetLogger("test");for(inti=0;i<9999;i++){log.Info("test"+i);}});t.SetApartmentState(ApartmentState...