[vtkusers] VTK/Java crashes -- WeakGlobalRef or garbage collection problem...solution?

Jeff Baumes jeff.baumes at kitware.com
Tue Nov 17 09:32:41 EST 2009


On Tue, Nov 17, 2009 at 4:56 AM, Baliki baliki <balikivtk at gmail.com> wrote:
> I use a vtkVRMLImporter to read a vrml file. All variables (vtkVRMLImporter,
> vtkActor, etc) i use are in function scope.
> I "solved" the problem using the vtkVRMLImporter as a global variable.
>
> The weird thing is that when i tried a similar thing using vtkSTLReader to
> read an stl file, the crash did not occur!
> (all variables in function scope).
>
> If you have any possible explanation, please let me know.

Where did your crash happen? Within the function where you are using
the vtkVRMLImporter, or afterward when you are accessing/rendering
data that came from the importer?

Jeff



More information about the vtkusers mailing list