G
Guest
I have a dll that I call to start a thread that will monitor a serial port
and then process and store the data received from that port.
On most every computer I have run this on, the program works perfectly.
However, I have a Panasonic CF-51 laptop that fails when I try to launch the
thread.
It works on other CF-51's, it only fails on this particular computer.
I get no exceptions; it simply reports the threadstate as Stopped.
This was developed on VS 2003 running .NET Framework 1.1.
Any ideas??
My code is as follows:
try
{
thrd = new Thread(new ThreadStart(Collect));
thrd.Name = "Comm Port Reader";
thrd.Priority = ThreadPriority.Highest;
thrd.IsBackground = true;
thrd.Start();
Thread.Sleep(10);
if (!thrd.IsAlive)
{
MessageBox.Show("thread failed to start");
MessageBox.Show("ThreadState: "+thrd.ThreadState.ToString());
}
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
and then process and store the data received from that port.
On most every computer I have run this on, the program works perfectly.
However, I have a Panasonic CF-51 laptop that fails when I try to launch the
thread.
It works on other CF-51's, it only fails on this particular computer.
I get no exceptions; it simply reports the threadstate as Stopped.
This was developed on VS 2003 running .NET Framework 1.1.
Any ideas??
My code is as follows:
try
{
thrd = new Thread(new ThreadStart(Collect));
thrd.Name = "Comm Port Reader";
thrd.Priority = ThreadPriority.Highest;
thrd.IsBackground = true;
thrd.Start();
Thread.Sleep(10);
if (!thrd.IsAlive)
{
MessageBox.Show("thread failed to start");
MessageBox.Show("ThreadState: "+thrd.ThreadState.ToString());
}
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}