Solved

multiple serial ports

Posted on 2008-06-22
4
240 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
[X]
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
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reading excel file in .net 2 44
.NET Enums [Flags] & Bitwise Design Question 6 49
Telerik RadEditor Control Save 8 36
Need some help with design 17 44
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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