Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3731

Re: Serial Port Communica

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "tar" <tar@THRWHITE.remove-dii-this>
Subject Re: Serial Port Communica
Message-ID <ymiy74q4qn7.fsf@blackcat.isi.edu> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <908eadf1-c4b9-4fd2-b0c0-dedc24dedd04@56g2000hsm.googlegroups.com>
References <908eadf1-c4b9-4fd2-b0c0-dedc24dedd04@56g2000hsm.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 23
Date Wed, 27 Apr 2011 15:46:36 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303919196 96.60.20.240 (Wed, 27 Apr 2011 10:46:36 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:46:36 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:3731

Show key headers only | View raw


  To: comp.lang.java.gui
HulkingNightCrawler <TravisPomeroy@gmail.com> writes:

> I am trying to read data off a serial port and then display the data
> in a GUI and I cannot seem to access the GUI in order to do this.  For
> some reason whenever I try to append to the text box the program seems
> to stall out and I cannot figure out why?  Any help would be
> appreciated, thanks!!

Well, the first thing I would try to do would be to eliminate the empty
exception catch clauses.  At the very least you should put something in
that prints the error message and the stack trace.

Silently catching exceptions is a terrible way to debug anything, and is
just downright stupid programming practice in any case.

-- 
Thomas A. Russ,  USC/Information Sciences Institute

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Serial Port Communication "HulkingNightCrawler" <hulkingnightcrawler@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
  Re: Serial Port Communica "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000

csiph-web