Click to See Complete Forum and Search --> : MSComm Error


krisn
September 3rd, 2001, 12:34 PM
I am using a MSComm control in my app.

I have gone through setting the com parameter (baud rate, handshaking etc) then open the com port again with:

ComPort.PortOpen = true



This is raising an error comSetCommStateFailed (8015) - Could not set comm state

I have absolutely no idea why this is happening. It works fine on my machine (NT) and other machines in my office (Win 2000), but is failing on others (Win 2000).

Any ideas what causes this error? All the comm parameters are correct, I have tried many combinations, besides I am only using a baud rate of 9600, not exactly high spec.

kris