[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cp-patches] FYI: Made PixelGrabber more robust
From: |
Mark Wielaard |
Subject: |
RE: [cp-patches] FYI: Made PixelGrabber more robust |
Date: |
Wed, 24 Aug 2005 23:10:46 +0200 |
Hi,
On Fri, 2005-08-19 at 11:35 +0200, Jeroen Frijters wrote:
> IMO, the proper way to handle this is a pattern like this:
>
> boolean ok = false;
> try
> {
> ip.startProduction(PixelGrabber.this);
> ok = true;
> }
> finally
> {
> if (!ok)
> imageComplete(ImageConsumer.ABORTED);
> }
>
> That way you never swallow the exception (so that it can bubble up to
> the unhandled exception handler for the thread/threadgroup.
Yes. That is better then my suggestion.
Thanks,
Mark
signature.asc
Description: This is a digitally signed message part