[vtk-developers] Crash with vtkCompassWidget

Ken Martin ken.martin at kitware.com
Fri Jun 20 14:43:37 EDT 2008


I already checked in a fix for this. Clearly Get methods should not crash.
It did already create a default rep before being rendered it just did not do
that prior to someone invoking one of the set/get methods in question.

Thanks
Ken

Ken Martin PhD
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
ken.martin at kitware.com
518 371 3971 (w/f)


-----Original Message-----
From: vtk-developers-bounces at vtk.org [mailto:vtk-developers-bounces at vtk.org]
On Behalf Of Prabhu Ramachandran
Sent: Friday, June 20, 2008 2:38 PM
To: David Cole
Cc: VTK Developers
Subject: Re: [vtk-developers] Crash with vtkCompassWidget

David Cole wrote:
> A widget requires an attached widget representation to work properly for 
> all of its methods...
> 
> Is this a bug? Or an intended "it's not gonna work unless there's a 
> representation connected to it..."?

I'll just add that no other VTK class behaves like this.  It shouldn't 
crash this way.  At least the getters should check for the WidgetRep and 
return 0 or something if it isn't set and can't be set to a reasonable 
default.

cheers,
prabhu


_______________________________________________
vtk-developers mailing list
vtk-developers at vtk.org
http://www.vtk.org/mailman/listinfo/vtk-developers




More information about the vtk-developers mailing list