try to launch java -ms300m ...... where 300 mb is the maximum heap size that you want for the applet (or application) . Of course your memory demand can be different...
 
Hope this helps
 
Roberto
----- Original Message -----
From: jinping
Sent: Friday, July 30, 2004 3:31 AM
Subject: [JAVA3D] encounter "OutOfMemory" when Applet reads 3D models larger than about 5MB

Hi,

  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.

                                                                                                                                                     Jeff

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