• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

multiple serial ports

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
klay8
Asked:
klay8
  • 2
  • 2
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
try/cath produces a meaningful delay in your application, you should try to test if there is data in the buffer.
0
 
klay8Author Commented:
i dont care about the delays
but i am asking if had a lot of exceptions, does the application freeze?
thanks
0
 
Jaime OlivaresSoftware ArchitectCommented:
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
 
klay8Author Commented:
thanks
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now