I'm getting an java.lang.OutOfMemoryError in my program after trying to add several thousands of scene nodes to my scene graph. OK: "no problemo", I suppose it's not possible to avoid such an error when you try to render "too much" 3D objects. But I have some questions:
1. I'm not sure, but...it's possible the "OutOfMemoryError" comes from the Java3D rendering thread and not from the main thread? I have insert this line into my code: Runtime.getRuntime().freeMemory() and it returns about 32 Mb of free memory just before the error, so the JVM is supposed to have enough memory. In addition, my application doesn�t crash after the error, and you can continue interacting with it (although not seeing the scene nodes I was trying to add). 2. In that case or not, how can I catch this exception ? (just to show a error message to the user). I have tried it with a simple "try-catch" block, but it doesn�t work... Thank you. ==========================================================================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".
