Adrian,

Another note to remember is that internally a 1024x1024 image is huge
(not the same as the small compressed JPEG file).  If you are truly
using them only one at a time then obviously something is getting
allocated and not cleaned up each time you load one.  As Justin
suggested you might want to try a different method of loading the
images.

- John Wright
Starfire Research

Adrian Meekings wrote:
>
> Hi folks
> Ive Had it with Texture loader.
> Can anyone offer answers to the following.
>
> Im trying to load in an 1024 x 1024 JPEG images, lots of them, one at a time though. 
>Im using them to animate a Texture.
> The Problem I get is the usual :
> java.lang.OutOfMemoryError
> << no stack trace available>> ;/ grrrr!!!!
> Im using -Xmx256 (as much as I can spare ) with a 500 Billion Trigabit paging file 
>but I still get this error. The Windoze NT Task Mangler shows the memory usage 
>soaring into the stratosphere.
>
> Im using the same Variable name each time and creating a new Texture loader.
> Ive Tried -Xincgc (incremental garbage collection) but It still only postpones the 
>enebitable slightly.
> I need the 1024x 1024 (works fine for smaller JPEGs)
>
> I cannot find any reference to the Max Size of JPEg that can be loaded.
>
> Has Anyone got a reliable work- around for this ??
>
> Thanks in advance
> Adrian
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to