Solved

multiple serial ports

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

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 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