Solved

multiple serial ports

Posted on 2008-06-22
4
204 Views
Last Modified: 2013-11-26
hi
i built an application in visual c++ 2005 pro to send and receive from many serial ports at the same time..
so i am sending a string over the night to ports opened or closed every ten seconds, so might receive a lot of exceptions using try ...catch
what are the negatives of this ?
thanks
regard
klay
0
Comment
Question by:klay8
  • 2
  • 2
4 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 21843386
try/cath produces a meaningful delay in your application, you should try to test if there is data in the buffer.
0
 

Author Comment

by:klay8
ID: 21843462
i dont care about the delays
but i am asking if had a lot of exceptions, does the application freeze?
thanks
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 21843472
no, it doesn't have to freeze, indeed the try/catch block purpose is to allow your app to work without problems.
it has to be related with other problem, maybe you are having a memory leak.
0
 

Author Comment

by:klay8
ID: 21843537
thanks
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now