[vtkusers] Debug Assertion with vtkGarbageCollector

Jothybasu Selvaraj jothybasu at gmail.com
Fri Feb 24 11:53:34 EST 2012


I think yes!

Calling Render() on vtkRenderer yourself will create conflicting time
stamps in the vtkRenderWindow.

Could you try replacing the render call with renWin->Render().


Jothy

On Fri, Feb 24, 2012 at 4:48 PM, Gishara Indeewarie <gish.777 at gmail.com>wrote:

> Thanks Jothy. Yes I am calling Render on vtkRender. Does it have something
> to do with vtkGarbageCollector?
>  I am calling vtkObject->Delete() from the MFC dialog where the options
> are selected. But it throws this assertion.
> Thanks.
>
> On Fri, Feb 24, 2012 at 6:18 PM, Jothybasu Selvaraj <jothybasu at gmail.com>wrote:
>
>> Are you calling Render() on vtkRenderer or vtkRenderWindow.
>>
>> Quoting what others said:
>>
>> You are not supposed to call Render on vtkRenderer. You shoud use
>> RenderWindow->Render().
>>
>> Jothy
>>
>> On Fri, Feb 24, 2012 at 12:37 PM, Gishara Indeewarie <gish.777 at gmail.com>wrote:
>>
>>> Hi all,
>>>
>>> I have a vtk window where I change the data of it whenever user selects
>>> an option (from a set of radio buttons in another MFC dialog).
>>> I use render->render() each time when the data is changing.
>>> My problem is that when I try to delete the Intearctor, I get a debug
>>> assertion as " Expression: e->Component != 0", in vtkGarbageCollectror.cxx
>>> , line 781.
>>> Is there a way to delete all the vtk objects in vetk inteteractor at
>>> once?
>>> I am deleting all the vtk objects one by one here, but finally it gives
>>> me this error.
>>> Please help me.
>>> Thanks.
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>
>>
>>
>> --
>> Jothy
>>
>>
>
>
> --
> Gish
>



-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120224/bd33f706/attachment.htm>


More information about the vtkusers mailing list