Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
Online Members
Kapil
More...
Forums
»
.NET
»
.NET
»
How to release COm Port
Posted Date:
08 Jun 2012
Posted By::
Mona Rai
Member Level:
Gold
Member Rank:
549
Points
: 2
Responses:
3
Dear All
I have an aplication in Dot net where I communicate with the Com port , But some times it remains locked , How can i solve the problem, Please send me the code
Mona Rai
Tweet
Responses
#674574 Author:
Ajatshatru Upadhyay
Member Level:
Gold
Member Rank:
17
Date: 08/Jun/2012 Rating:
Points
: 0
Hi,
You should use SerialPort.Close method
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.close.aspx
Hope it'll help you.
Regards
Ajatshatru
#674604 Author:
Asheej T K
Member Level:
Diamond
Member Rank:
2
Date: 08/Jun/2012 Rating:
Points
: 2
Hi,
It seems you are not closing the port properly. If you can post the code you are using we will be able to amend the same.
Regards,
Asheej T K
Microsoft MVP[ASP.NET/IIS]
DotNetSpider MVM
Dotnet Galaxy
#674715 Author:
Pawan Awasthi
Member Level:
Diamond
Member Rank:
4
Date: 10/Jun/2012 Rating:
Points
: 2
Hai Mona,
You need to check first whther the port is opened or not. If it is not opened then open it.
You can go through the below link for the code in details. Also you cna add the check jusy before opening the port.
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.close.aspx
Hoep it will be helpful to you.
Regards,
Pawan Awasthi(DNS MVM)
+91 8143683708 (pawansoftit@gmail.com)
Outstanding Contribution Award..NTT Data Inc
Post Reply
This thread is locked for new responses. Please post your comments and questions as a
separate thread
.
If required, refer to the URL of this page in your
new post
.
Tweet
Next :
How to restrict cursor placed inside the datagridview?
Previous :
On installing visual studio 2008 or sql server 2005 internet and intranet is being blocked
Return to Discussion Forum
Post New Message
Category:
Related Messages
Is there any expert to solve this?
what is difference between String and string(data type) in c#?
what is a resource file...
Horizontal Scroll Bar for a listview control
sql querry
Active Members
Today
Pawan Awasthi
(46)
naveensanagase...
(21)
Kapil
(13)
Last 7 Days
naveensanagase...
(224)
Pawan Awasthi
(190)
Naved Hasan ...
(189)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds
Talk to Webmaster Tony John