STA 스레드에서 여러 핸들을 위한 WaitAll은 지원되지 않습니다.

706 단어 wait
[csharp] view plaincopy
using System;  
using System.Collections.Generic;  
using System.Windows.Forms;  
  
namespace WindowsApplication1  
{  
    static class Program  
    {  
        /// <summary>  
        ///          。  
        /// </summary>  
        [MTAThread] //      STA            WaitAll。     STAThread  MTAThread  
        static void Main()  
        {  
            Application.EnableVisualStyles();  
            Application.SetCompatibleTextRenderingDefault(false);  
            Application.Run(new Form1());  
        }  
    }  
}  

좋은 웹페이지 즐겨찾기