starzstone
11-05-2002, 04:48 AM
hi,
i've seem to have problem with this line of code:
try{
serialPort = (SerialPort)portId.open("Serial_Communication", 2000);
} catch (PortInUseException e)
{
return InitFail;
}
when the program is run, there will be an error "Error 1 setCommConfig" what causes this error? im using the java comm package by sun.
pls advise. thanks.
i've seem to have problem with this line of code:
try{
serialPort = (SerialPort)portId.open("Serial_Communication", 2000);
} catch (PortInUseException e)
{
return InitFail;
}
when the program is run, there will be an error "Error 1 setCommConfig" what causes this error? im using the java comm package by sun.
pls advise. thanks.