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.

Solved: Visual C# Serial Port - Semaphore Timeout

Discussion in 'Software Development' started by jfm429, Oct 15, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. jfm429

    jfm429 Thread Starter

    Joined:
    Jun 8, 2007
    Messages:
    177
    I am trying to connect to a serial device. The sp.Open() method throws these two exceptions in the Output window:

    The semaphore timeout period has expired
    A first chance exception of type 'System.IO.IOException' occurred in System.dll

    What's going on here? I'm running Windows 7, and using the exact same code that was already tested and worked perfectly on Windows XP. No code changed, and the hardware is identical - just the OS changed.
     
  2. dock98

    dock98

    Joined:
    Jun 1, 2007
    Messages:
    65
    are you sure the device is supported by windows 7?
     
  3. aya09

    aya09

    Joined:
    Oct 16, 2009
    Messages:
    1
    I'm also having problem sharing and setting up adhoc network in Windows 7. You may try checking out the Adapter properties
    like what I do everytime I had problem in network.
     
  4. jfm429

    jfm429 Thread Starter

    Joined:
    Jun 8, 2007
    Messages:
    177
    I think so. It's a very recent Bluetooth chip that WIndows 7 automatically found drivers for, so it (should) be compatible. However, I also read on Google that the semaphore timeout error can actually be related to a hard drive read/write error, and that deleting the errant file can solve the problem? I have no idea where to look for this error, so I can't say if it's the problem or not. See http://forums.techarena.in/windows-server-help/803210.htm for more info on that.
     
  5. jfm429

    jfm429 Thread Starter

    Joined:
    Jun 8, 2007
    Messages:
    177
    Solved. Turns out the Bluetooth device was faulty.

    Seriously. A brand-new $850 robot with a faulty Bluetooth chip. Go figure.
     
  6. Sponsor

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!

Loading...
Thread Status:
Not open for further replies.

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