|
-
Apr 27th, 2005, 04:51 AM
#1
Thread Starter
Hyperactive Member
Runtime Error 8005
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 ??????
-
Apr 27th, 2005, 05:31 AM
#2
Re: Runtime Error 8005
Posting you code here would be of help....
-
Apr 27th, 2005, 07:48 AM
#3
Re: Runtime Error 8005
 Originally Posted by developerno1
WHEN im trying to open a modemport with mscomm im getting the error 8005 'port already open' even though it isnt really open. [...] 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 .
If you proceed and get the error that the operation is only valid when the port is open doesn't mean it isn't opened, it just means that your application has failed to open it. Some other application must be using the port and have it locked.
Local ports (not IP ports since that is something different) is treated by the system as files. If you try to open a file for writing but there is a file lock on it you will fail to open it (because it's already opened). If you ignore that error and tries to write to that file you will get another error stating that the file isn't opened for writing. Same thing with the local ports on your computer.
-
Apr 27th, 2005, 12:39 PM
#4
Thread Starter
Hyperactive Member
-
Apr 10th, 2007, 09:02 AM
#5
New Member
Re: Runtime Error 8005
Open Device Manager
Scan for hardware changes
Expand Mice And Other Pointing Devices
Look for Microsoft SerialBallPoint
If not using same, disable it.
Reboot
-
Mar 24th, 2011, 01:15 AM
#6
New Member
Re: Runtime Error 8005
i m facing error of "port already open"- "error 8005"
so how to solve this error...
-
Mar 24th, 2011, 04:52 AM
#7
Re: Runtime Error 8005
 Originally Posted by manoj_vadera
i m facing error of "port already open"- "error 8005"
so how to solve this error...
I'm sorry but did you even bother to read this 6 year old thread before you decided to resurrect it? The question has already been answered.
-
Jul 7th, 2011, 04:39 PM
#8
New Member
Re: Runtime Error 8005
Hi Joacim,
Thanks for your time in advance, but after read this froum (and others) I still have some problems/doubts.
Is there anyway to close the COMM1 Port that another application has opened by software (VB or other language)?
My problem is that sometimes my program is shutting down incorrectly (I mean, not closing the port), then if I open the program again I get the famous error 8005. Within this new instance of the program I don't know how to close the port.
Is there anyway to close the port from this new instance without shuting down the computer? Or is there any instruction (or program in any language) that allow me to close the port?
I am using Windows 2000 Server (I am thinking change it if needed!!)
Thanks a lot!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|