--- trunk/FlisServer/FlisServerDlg.cpp 2007/12/04 13:48:52 146 +++ trunk/FlisServer/FlisServerDlg.cpp 2007/12/05 11:54:09 158 @@ -471,6 +471,7 @@ AppendText(tekst); } } + Sleep(10); //Small delay to avoid busy wait } Sleep(100); //Give the modem a chance to send the last data while(Serial.getComstat().cbInQue > 0) @@ -740,6 +741,7 @@ CString SQL, Textwindow; SQL.Format("update command set executed=now() where id=%s",IDnr); db.ExecuteSQL(SQL); + Sleep(10); AppendText("Command executed"); } Sleep(150);