c# 크로스 스레드, 델리게이트 delegate 활용 public ServerMain() { InitializeComponent(); Thread ServerMain = new Thread(Server_MainLoof); ServerMain.Start(); } private void Server_MainLoof() //서버의 메인루프 { CheckForIllegalCrossThreadCalls = false; IPEndPoint ipep = new IPEndPoint(IPAddress.Any, Constants.Server_Port); //서버의 아이피와 객체를 담기위한 객체 ServerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); //서버소켓 생성 .. 더보기 c# 크로스 스레드(CheckForIllegalCrossThreadCalls) // This event handler creates a thread that calls a // Windows Forms control in an unsafe way. private void setTextUnsafeBtn_Click( object sender, EventArgs e) { this.demoThread = new Thread(new ThreadStart(this.ThreadProcUnsafe)); this.demoThread.Start(); } // This method is executed on the worker thread and makes // an unsafe call on the TextBox control. private void ThreadProcUnsafe() { this... 더보기 (ns-2.35) ns make failed ns-2.35/linkstate/ls.h 137번째 줄을 void eraseAll() { erase(baseMap::begin(), baseMap::end()); } void eraseAll() { this->erase(baseMap::begin(),baseMap::end()); } 로 수정 하고 다시 재설치를 했더니 된다. 더보기 이전 1 2 3 4 ··· 34 다음