Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6119813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:35:47+00:00 2026-05-23T15:35:47+00:00

My title describes my problem… Can’t do anything to solve it. It is a

  • 0

My title describes my problem… Can’t do anything to solve it.

It is a serial COM device connected via USB cable (appropriate driver is installed).
Also I can see that COM port is detected by the system and exists in the following registry key:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM

Please advise.

UPDATE: Sorry for being not so explanative as it has to be. Probably I figured why it happens: my app subscribed on event of values added/removed from HKLM\HARDWARE\DEVICEMAP\SERIALCOMM. And app tried to open the port immediately right after it was noticed about it. But port may be not ready at that time and so that is why I got “The port doesn’t exist”. Simply Thread.Sleep(2000) solved my problem.

But this Sleep solution doesn’t seem as good solution. Maybe I should check somewhere else for device connected other that in registry? So I will connect to it when it really exist and ready to connect.

Thank you for your responses! Love stackoverflow!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:35:47+00:00Added an answer on May 23, 2026 at 3:35 pm
    1. Please provide a code snippet for your “open”.

    2. Please specify the exact error text and message (for example, errno 57, errno 55, etc).

    3. Please specify your C#/VS and OS versions

    4. Q: what does System.IO.Ports.SerialPort.GetPortNames say?

    5. Q: are you absolutely, positively sure the port isn’t already opened and in-use (for example, by another application)?

    6. Q: What happens if you reboot, and try re-running your program immediately afterwards?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The title describes my problem quite well. The offending line of code: connect(table, SIGNAL(cellChanged(row,
Not sure the title fully describes the problem/question I'm trying to ask, sorry. One
I'm not sure the title adequately describes the problem I've found myself with... Basically,
I am trying set up databinding as described in the title. The problem I
As the title describes, what are the different doctypes available and what do they
Title is the entire question. Can someone give me a reason why this happens?
Title says what i'm trying to do. I can successfully generate an assembly if
I am not sure if title describes what i want accurately. What i want
Alright, I know my title is a little obscure but it best describes the
First of all, I'm not sure if the title accurately describes what I'm referring

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.