Link to home
Start Free TrialLog in
Avatar of intouch_chris
intouch_chris

asked on

Re-loading corrupt images

I am using MediaTracker to keep track of the loading status of some images that I need for my applet. Even though all images are completely and correctly in the browsers cache (check with about:cache), MediaTracker.isErrorAny() and getErrorsAny() will return true (I am using a separate MediaTracker for each image, so I think using the Any-functions is not the problem :).

The Image objects that I try to load the pictures in will be (null).

The really strange things is that when you start the applet again (without flushing the cache), the pictures MAY load.

Whats going wrong here?

Netscape 3/4 and MSIE behave the same way on Win95/NT.
Avatar of mann061997
mann061997

Did you call one of the waitFor...() methods before
accessing the images?

Avatar of intouch_chris

ASKER

Yes, I made a call to waitForAll() and it returns without any Exceptions...
ASKER CERTIFIED SOLUTION
Avatar of garik
garik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial