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 1006661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:29:46+00:00 2026-05-16T08:29:46+00:00

I have a small application to open the door using a relay controller. I

  • 0

I have a small application to open the door using a relay controller. I have to open and close the COM port all time if someone comes in. In the morning, when lots of people come together controller responds very slow and i need to solve this problem fast.

My question is, will i run in to memory issues if i keep it open all time time? will open port recycle if application crashes and restart ?

  • 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-16T08:29:46+00:00Added an answer on May 16, 2026 at 8:29 am

    I don’t think you’ll run into memory problems. I wrote a program that uses a bar code scanner that uses a COM port to listen to events from the scanner. I open it when the program launches and keep it open until the program closes with no issues at all.

    The only thing to worry about is that the COM port can only be used by one object at a time, so if your program already has it open and tries to open it again, that’s a problem.

    The program may leave the COM port open, so you’re best off to try opening it, and if that fails, try closing it (two separate try…catch blocks) and then try opening it again. It’s a hassle, but in my app it turned out to reduce the number of errors I had to troubleshoot. I just open/close/open every time the program loads to be safe.

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

Sidebar

Related Questions

I have a small open GL application I'm writing in Java using JOGL. I'm
We have a small application we built in our spare time using the latest
I have small code to open pdf file from my application in iBooks using
I have a small application in java which searches images using bing image search.
I have a small problem with an Xpage Application and hope that someone has
i have develop a small mvc3 application using Telerik Extension for asp.net mvc3 in
I have a small Java2EE application, which is planning to grow in time (not
I have a small application that uses WCF to communicate with a webserver. This
I have a small application that I am building a Chat application into, so
I have a small application in C#, and so far I have implemented it

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.