1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

C#, Serial Port, The semaphore timeout period has expired

Discussion in 'Software Development' started by TG3, Dec 13, 2012.

Thread Status:
Not open for further replies.
  1. TG3

    TG3 Thread Starter

    Joined:
    Dec 13, 2012
    Messages:
    1
    Greetings,

    My environment is: Win'7, Visual Studio 2010, C#

    There is another message on these forums with almost exactly the same title. It's closed, so I couldn't post there.

    I'm getting that exact same response from Win'7 in a try /catch scheme.

    i.e., "...The semaphore timeout period has expired..."

    I am quite confident that the serial port is really there, as he will open and will transfer data from time to time.

    It's the whims of the hardware that have me so confused.

    The exact same code worked perfectly last night. In fact, it has worked for weeks.

    The statement which I believe is causing the error is...


    TheUsersChosenSerialPort.Open();


    Much like the other thread mentioned, the port is a BlueTooth connector, and Win'7 is reporting him okay, and so on.

    I welcome responses from those with useful knowledge on this topic.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1080798

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice