Hi!

We have a problem using the GeometryArray.setCoordinate(...) method:

We use "virtual vertices" which are simple PointArrays with only one
coordinate encapsulated in a Shape3D object, to manage several vertices of
a complex geometry. The intention of this is to get different vertices
pickable and transformable.

now the problem:

If we trace the memory usage of the application when we translate some
vertices (with calling the setCoordinate(..) method for every picked
vertex) we noticed that the memory used in the setCoordinate(..) method
won't be freed afterwards.

this means:

When we call setCoordinate() about 500 times (500 vertices are picked and
translated together), there are 100 KBytes wasted and not given back even
if System.gc() is called.
So if we keep on translating this vertex set the memory consumption can be
over 5 MBytes!!!

That also means that the application ends up sometime with a
java.lang.OutOfMemoryException.

If anybody knows how to fix this memory leak we would be thankful!

Thanks for help,
Pitax

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