Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Weird situation - Icons disappearing
icon8.gif  Weird situation - Icons disappearing [message #1022883] Fri, 22 March 2013 14:04 Go to next message
Eclipse UserFriend
We are using RAP 1.5.1 and we have about 50 customized icons in the application among 10 or so plugins. We called "initializeImageRegistry(ImageRegistry reg)" to register all of the icons we need for our application, and use "imageRegistry.get(key)" when we need the Image. Nothing extraordinary, and it works fine.


The problem starts when we keep using the application for a while, and some of the icons start to disappear from our application. When this situation happens, the icons inside a tree viewer and table viewer will be gone. I don't see any error message in the Javascript console, nor in the Java exception log.

I know it is difficult to debug without a piece of code that can replicate the problem, but is there something basic that I can test to give me a lead on the problem? Did any of you see this problem before?

One last lead I got from the JavaDoc of the initializeImageRegistry() is that the OSes have limited resources so ideally we should not put many images per plugin. How true is that? Is it possible that the system simply ran out of resources so the images are gone?

Any leads / suggestions are highly appreciated.

Thanks,
Ronald
Re: Weird situation - Icons disappearing [message #1023618 is a reply to message #1022883] Sun, 24 March 2013 14:58 Go to previous message
Eclipse UserFriend
I believe I have this mystery resolved. It was caused by caching the ImageRegistry inappropriately. We have a utility class that provides a method to retrieve the images, but we inadvertently cached the image registry to a static variable in the class. ImageRegistry is per session based and that was why it always works the first time.

Previous Topic:How to restart session?
Next Topic:scrolling on iPad in browser-object
Goto Forum:
  


Current Time: Sat Jul 05 02:04:14 EDT 2025

Powered by FUDForum. Page generated in 0.03332 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top