It's very weird. i load 80 images and it works.
but then i load 60 smaller images and i get a message "Applet not initialized" when i try to view the applet.
This applet i'm making is a game in the form
applet{
run()
star()
stop()
paint()
and other methods
}
and i load the images in the form
x = getImage( getCodeBase() + "hello.jpg" );
and i also use Mediatracker to track images. I give each loaded image a tracker id. then at the end of init() , i say t.waitForAll.
It's weird, how the program loads 1000 X 600, but can't load a bunch of images that are 40 X 47, or 100 X 100 , or something like that. Also, for loading 80 big 1000 X 600, it was just a test to see if it was a memory problem why i couldn't load the other images. But loading 80 big images and no problems,,, ,that made me think it's not memory related,, but who knows what else.
By the way this is not used in the web. it's an applet i use in my computer
2006-10-28
03:06:09
·
2 answers
·
asked by
Anonymous
in
Programming & Design