Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

multiple serial ports

Posted on 2008-06-22
4
233 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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