|
|
|
|
![]() ![]() |
Jul 7 2008, 12:13 AM
Post
#1
|
|
|
Sparkx Group: [HOSTED] Posts: 339 Joined: 11-October 06 From: Dana Point, CA, USA Member No.: 16,496 |
I have been using the picking tool with setShapeCylinderSegment (this returns infinit results but is capped). It works just fine for me (in terms of what it does) and it wasn't until just recently I noticed that it has been causing my program to spike the memory. I have looked through Google to see the problem and apparently it is caused a memory leak. I have tried to solve it by simply setting all the variables to null after they are used but this doesn't help. Is there something I can do to or a free software I can use to find the exact variable that is causing this problem and a way to fix it. Here is the exception I received:
CODE Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space Thanks in advanced,at com.sun.j3d.utils.picking.PickResult.intersect(Unknown Source) at com.sun.j3d.utils.picking.PickResult.generateIntersections(Unknown Source) at com.sun.j3d.utils.picking.PickResult.numIntersections(Unknown Source) at com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(Unknown Source) at com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersect(Unknown Source) at com.sun.j3d.utils.picking.PickTool.pickClosest(Unknown Source) at KeyNavigatorApp.getLandHeight(KeyNavigatorApp.java:613) at KeyNavigatorApp.UpdateKeyPressed(KeyNavigatorApp.java:1243) at KeyNavigatorApp$6.actionPerformed(KeyNavigatorApp.java:1117) at javax.swing.Timer.fireActionPerformed(Timer.java:271) at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) Sparkx |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 21st August 2008 - 09:20 PM |