for (i = z; i < dataGridView1.Rows.Count; i++)
            {
                array = new string[j];
                m_arrayIPs = new IPAddress[j];
                array[i] = dataGridView1.Rows[i].Cells[0].Value.ToString();
                try
                {
                    IPHostEntry ip = Dns.GetHostEntry(array[i]);
                    m_arrayIPs[i] = ip.AddressList[0];
                    dataGridView1.Rows[i].Cells[1].Value = m_arrayIPs[i];
                }
                catch
                {
                    return;
                }
            }
会遇上一个问题就是,当用域名无法解析到IP地址时,就会报错,所以写了一个CATCH捕捉异常,但是捕捉完异常后,无法继续循环,各位高手有什么好办法吗?小弟在线等。