Thank you, Mona, Alessandro and Gasdia! 
Your suggestions work on my computer. I successfully loaded and displayed a
model larger than 20MB. It's really exciting having solved this problem
finally. Thank you all.
But I have one more question: I don't think it's a good idea to ask all the
visitors of my Web page to setup the parameters on their own machines. Many
users don't like to do it and even they do, it is still very possible that
many of them don't have enough authority to do it. So, is there any way to
change the default max heap size in the program? I googled and found nothing
helpful. And I tend to believe it's impossible because of the security
limitation for Applet. I'd like to check it with you.
Thank you!

Jeff

-----邮件原件-----
发件人: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] 代表 Mona Wong-Barnum
发送时间: 2004年7月31日 1:10
收件人: [EMAIL PROTECTED]
主题: Re: [JAVA3D] encounter "OutOfMemory" when Applet reads 3D models
larger than about 5MB

Hi Jeff:

        There is a way to increase the applet memory.  I googled and found
https://webproof.data-mail.com/Help/Low_Memory_Problem.htm which may be
helpful
to you.

>   I wrote an Applet that reads and displays VRML files. Everything is fine
> when the .wrl file is no larger than about 5MB. But when the total size of
> the .wrl file and it's .jpg texture excess 5MB, the JVM will always throw
a
> "outOfMemory" exception. I'm sure the physical memory is sufficient for
the
> program (512M RAM, WinXP). Has anyone encountered and solved this problem?
> Please help, thank you.

cheers,
Mona

==================================================================
  Mona Wong-Barnum
  National Center for Microscopy and Imaging Research
  University of California, San Diego
  http://ncmir.ucsd.edu/

  "If you don't have time to do it right, will you have time
  to do it over?"
                             -- unknown
==================================================================

===========================================================================
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