private void ProcessLog() { // 너무 이 작업만 할 수 없으므로 일정 작업 이상을 하면 일단 패스한다. int logWorkCount = 0; while (true) { string msg; if (DevLog.GetLog(out msg)) { ++logWorkCount; if (listBoxLog.Items.Count > 512) { listBoxLog.Items.Clear(); } listBoxLog.Items.Add(msg); listBoxLog.SelectedIndex = listBoxLog.Items.Count - 1; } else { break; } if (logWorkCount > 32) { break; } } }