Click to See Complete Forum and Search --> : Need to reclaim COM port numbers


ronwagner
September 27th, 2005, 02:19 PM
I have an OCX written in VB6 that uses the MS COMM control to communicate with an external device. One version of this device is a bluetooth device which uses a bluetooth serial service. The bluetooth serial service is configured to use a COM port, which the OCX uses to communicate with the device.

The problem is that the COM port numbers keep growing, and are now up to about COM27 or so. The MS COMM control only supports COM ports up to about COM16. Looking in the Windows Device Mgr it only shows three COM ports, COM1 (the builtin serial port), COM3 (the builtin modem), and COM27 (the bluetooth device). If I search the directory I find references to all the other COM ports between COM3 and COM27.

How can I purge all of the unused COM port info from wherever it needs to be purged from? I suspect that the bluetooth software is not properly removing the port when uninstalled, but I need a solution here. I have removed and reinstalled the bluetooth software several times in the process of testing several different bluetooth dongles.

This is all on Win XP SP2. I didn't have these problems on Win XP.

Thanks,
Ron Wagner

PeejAvery
September 27th, 2005, 05:58 PM
Go to the hardware manager and find the COM 27. Go to its "Properties" and choose the "Port Settings" tab. Click "Advanced." Now change its COM Port Number.