Reputation: 513
I used microsoft com control 6.0 in the application for sending data to the led control
MSComm1.EOFEnable = True
MSComm1.SThreshold = 100
MSComm1.InputLen = 0
MSComm1.RThreshold = 1
MSComm1.InBufferCount = 0
MSComm1.OutBufferCount = 0
MSComm1.NullDiscard = False
MSComm1.CommPort =1
MSComm1.PortOpen = True <-Getting exception to this line
......
I am geting Exception from HRESULT: 0x800A1F45 .Why does this port is not opening . When i run it through vb6 i doesnt get error ...Anybody can help me...
Upvotes: 1
Views: 1588
Reputation: 238076
Error 800A1F45 usually means the port is in use by another application.
You can decode an HRESULT according to this Wikipedia article. For 0x800A1F45
, you'll find:
Upvotes: 1