serialport problem...massive memory leak...Need urgent help.

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
 
B

Ben Voigt [C++ MVP]

If your need is really that urgent, then you should pay for Microsoft
Product Support Services. Then you will talk to an engineer on the phone in
real time.

With newsgroups, you might or might not get an answer and it will almost
certainly take a few hours to a couple days for each suggestion/you
providing more information/new suggestion cycle.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top