Results 1 to 4 of 4

Thread: Error: run time 8018

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    7

    Unhappy Error: run time 8018

    Hi all.
    I am working on the programming about the microcontroller and the vb using serial port. The problem is when I use the program in my PC, it works.
    But, after I run the program on the other pc, it did not work and got an error which is:

    run time 8018
    operation valid only when the port is open

    Thanks in advance.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Error: run time 8018

    That's usually caused by something else using the port, so your program threw an error (which you told it to ignore) when it tried to open the port.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    7

    Unhappy need help

    tq for the reply..actually there is not any device used at that serial port except my device..and i have something weird using the port which is when i just insert the DB 9 cable into the PC serial port the LED from my external circuit has flashed..that's mean the signal has been sent eventhough i did not sent the data from my program..

    how can i overcome this problem..tq..
    Last edited by win_832001; Jul 15th, 2006 at 12:31 AM.

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Error: run time 8018

    Which means that some program is using that port.

    Check for things like a Palm or PocketPC link program - even if the external computer isn't connected, those programs keep control of the port.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width