--- trunk/RomCheater/Docking/PIDSelector.cs 2012/06/09 21:11:02 352 +++ trunk/RomCheater/Docking/PIDSelector.cs 2012/06/09 21:19:35 353 @@ -274,10 +274,9 @@ namespace RomCheater.Docking { if (lstProcessList.SelectedItems[0] != null) { - string missing_name = lstProcessList.SelectedItems[0].Text; - int missing_pid = Convert.ToInt32(lstProcessList.SelectedItems[0].SubItems[1].Text); - logger.Warn.WriteLine("Connection to selected process ({0}) has been lost...Selecting the first available process.", string.Format("0x{0:x8}:{1}", missing_pid, missing_name)); - MessageBox.Show(string.Format("Connection to selected process ({0}) has been lost...Selecting the first available process.", string.Format("0x{0:x8}:{1}", missing_pid, missing_name)), "Connection to selected process lost", MessageBoxButtons.OK, MessageBoxIcon.Warning); + int missing_pid = this.ProcessPID; + logger.Warn.WriteLine("Connection to selected process ({0}) has been lost...Selecting the first available process.", missing_pid); + MessageBox.Show(string.Format("Connection to selected process ({0}) has been lost...Selecting the first available process.", missing_pid), "Connection to selected process lost", MessageBoxButtons.OK, MessageBoxIcon.Warning); } isAutoRefreshing = false; lstProcessList.Items[0].Selected = false; |