If you get an error immediately, then it's some kind of an issue with the serial port. For instance, another app such as palm synch is claiming the port or its IRQ.

Do you have a modem that's on the same IRQ as the serial port? (eg com1/com3)
_________________________
Tony Fabris