in weird way , what ever i use this function below
my application freeze and take long time before throwing blue screen of death
public void getLocalNetworkIpList()
{
Ping p = new Ping();
PingReply rep;
for (int i = 1; i < 100; i++)
{
string ipstring = "192.168.1." + i.ToString();
rep = p.Send(ipstring);
if (rep.Status == IPStatus.Success)
Local_IpAdresses_combobox.Items.Add(ipstring);
}
}
this function is only to provide a list of the ip addresses available in my local network , start from 192.168.1.1 and end with 192.168.1.100
im really confused because it look like a simple loop with some ip address checking and pushing in the combobox