U
uniquegodwin
Hello,
I'm having a very big problem with the serialport class and I need
some help to solve this.
we're using multiple serialports in a generic list since we need to
connect to multiple devices.
This is what our basic code looks like...
List<SerialPort> ports = new List<SerialPort>();
private void button1_Click(object sender, EventArgs e)
{
ports.Add(new SerialPort("COM6"));
ports.Add(new SerialPort ("COM7"));
ports.Add(new SerialPort("COM8"));
foreach (SerialPort port in ports)
{
port.Open();
}
}
Now,after the button is clicked,...if one of the devices(mobile phone
in our case) is switched off or if its cable is disconnected from the
USB port,there is an immediate massive memory leakage.
Please help us with a solution.
I have noticed a similar thread here...
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23315204.html
and a couple of bug reports in Microsoft Connect.
But,right now I need some IMMEDIATE URGENT solution.
Thanks so much
I'm having a very big problem with the serialport class and I need
some help to solve this.
we're using multiple serialports in a generic list since we need to
connect to multiple devices.
This is what our basic code looks like...
List<SerialPort> ports = new List<SerialPort>();
private void button1_Click(object sender, EventArgs e)
{
ports.Add(new SerialPort("COM6"));
ports.Add(new SerialPort ("COM7"));
ports.Add(new SerialPort("COM8"));
foreach (SerialPort port in ports)
{
port.Open();
}
}
Now,after the button is clicked,...if one of the devices(mobile phone
in our case) is switched off or if its cable is disconnected from the
USB port,there is an immediate massive memory leakage.
Please help us with a solution.
I have noticed a similar thread here...
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23315204.html
and a couple of bug reports in Microsoft Connect.
But,right now I need some IMMEDIATE URGENT solution.
Thanks so much