Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Fred Greer Newsgroups: comp.lang.java.programmer Subject: Re: ImageIO/BufferedImage behaving inconsistently from one day to the next. Date: Thu, 21 Jun 2012 00:22:21 +0000 (UTC) Organization: A noiseless patient Spider Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 21 Jun 2012 00:22:21 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="advR9IOszWdhb/8UVWNKJg"; logging-data="18695"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ysOFqBZHetrhK2gq6v3NAk/FXSp9E0WQ=" X-Mailer: MicroPlanet-Gravity/3.0.4 Cancel-Lock: sha1:OxIvm/74VrstratTOhOCsmAMGFY= Xref: csiph.com comp.lang.java.programmer:15471 On Wed, 20 Jun 2012 01:16:16 -0700, Roedy Green wrote: > On Wed, 20 Jun 2012 02:31:00 +0000 (UTC), Fred Greer > wrote, quoted or indirectly quoted someone who > said : > >>(BufferedImage img > did you put in MediaTracker wait code for this to load? If you > didn't sometimes you will try to get the size before it loads. It's being loaded with ImageIO.read(), which so far as I have been able to determine is synchronous. In fact I'm not sure a BufferedImage can ever appear to calling code to not be not fully loaded (as opposed to a generic Image).