WHEN im trying to open a modemport with mscomm im getting the error 8005 'port already open' even though it isnt really open. the error is shown in the line

mscomm.portopen=true

if i proceed to the next line while debugging it tells operation valid only when port open. which means that the port isnt really open .

what to do ??????