[vtk-developers] ruby patch to vtk-5.0.0
David Gobbi
dgobbi at atamai.com
Wed Mar 15 09:16:15 EST 2006
Hi Seiya,
Thanks! Both vtkruby and vtkTkRenderWidget are working like
I would expect.
- David
Seiya Nishizawa wrote:
> Hi David,
>
> I changed some sources,
> and inserted codes of "#UnRegister" to vtkTkRender*.rb.
> Then the warnings doesn't appear any more.
>
> Thanks,
>
> Seiya
>
>
> On Tue, 14 Mar 2006 09:17:53 -0500 (EST)
> David Gobbi <dgobbi at atamai.com> wrote:
>
>
>> Hi Seiya,
>>
>> Thanks! I tried the Tk support and it works for me. The vtkruby executable
>> works for me, too.
>>
>> But I try to use vtkruby to run the vtkTkRenderWidget example, it just
>> returns without displaying anything, and it doesn't print out any error.
>>
>> When I run vtkTkRenderWidget.rb with ruby, it works fine until I exit,
>> and then it prints this (under Linux):
>>
>> ===
>> Generic Warning: In /home/dgobbi/Atamai/VTKruby/Rendering/vtkTkRenderWidget.cxx, line 641
>> A TkRenderWidget is being destroyed before it associated vtkRenderWindow is destroyed.This is very
>> bad and usually due to the order in which objects are being destroyed.Always destroy the
>> vtkRenderWindow before destroying the user interface components.
>> ===
>>
>> This indicates a garbage collection problem. What kind of garbage collection does
>> Ruby use? To get rid of this error, it is necessary that just before the program
>> exits, it must remove all references to the vtkRenderWindow and then it must run
>> the garbage collector, to make sure that the vtkRenderWindow is deleted before the
>> RenderWidget.
>>
>> - David
>>
>> --- Seiya Nishizawa <seiya at kugi.kyoto-u.ac.jp> wrote:
>>
>> [...]
>>
>>> Additionally,
>>> I added Tk widget support.
>>>
>>> Again,
>>> the resouces are at
>>> http://www.gfd-dennou.org/arch/ruby/products/ruby-vtk/index.html
>>>
>
> --------------
> Seiya Nishizawa
> seiya at kugi.kyoto-u.ac.jp
> GnuPG Fingerprint = 0696 D312 5737 929A B481 FC91 44F4 6BA0 467A 7703
> _______________________________________________
> 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