• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

ImageIcon corruption?  RSS feed

Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We had a strange thing happen to our application and I think it is a Java bug. The swing application with toolbar icons and other images was left running over night - during that time something may have happened where the resources got low and the gui (probably) started to redraw all haywire like it does - in the morning some of the images became corrupt - in that some of them were blank and others were all haywire looking but stagnant and others were fine. And they didn't clean themselves up - they are just staying in that corrupted looking state. If you restart the app - the images look fine. Does anyone know of a work around for this or should I log a bug for Sun - we are using 1.4.1_01 - I've already looked in Sun's bug database and couldn't find this exact problem. The one thing is my ImageIcons are loaded on init and are static finals - I don't know if this is a factor. It seems like Java cached them in some funky state and saved them that way.
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if this happens every time you let the app running for a long time, and it happens on different machines the same way, you should write a test application that behaves the same way (you will have to check that), and post it to the bug parade.
Only if they can run the testcase and it shows this strange behaviour they can decide if this is a bug in the jre.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!