<DIV>Hello,</DIV>
<DIV>I'm using VTK 4.2 with Python 2.3&nbsp;and wxWindows (wxPython) under Windows.</DIV>
<DIV>Problem : wxVTKRenderWindow crashes on exit (fatal error on&nbsp;python.exe). wxPython doesn't like VTK.</DIV>
<DIV>I tried to&nbsp;make my own wrapper :</DIV>
<DIV>&nbsp;</DIV>
<DIV>from wxPython.wx import *<BR>from vtkpython import *</DIV>
<DIV>def Test():<BR>&nbsp;&nbsp;&nbsp; app = wxPySimpleApp()<BR>&nbsp;&nbsp;&nbsp; frame = wxFrame(None, -1, "wxRenderWindow", size=wxSize(400,400))</DIV>
<DIV>&nbsp;&nbsp;&nbsp; renWin = vtkRenderWindow()<BR>&nbsp;&nbsp;&nbsp; ren = vtkRenderer()<BR>&nbsp;&nbsp;&nbsp; renWin.AddRenderer(ren)<BR>&nbsp;&nbsp;&nbsp; cone = vtkConeSource()<BR>&nbsp;&nbsp;&nbsp; cone.SetResolution(8)<BR>&nbsp;&nbsp;&nbsp; coneMapper = vtkPolyDataMapper()<BR>&nbsp;&nbsp;&nbsp; coneMapper.SetInput(cone.GetOutput())<BR>&nbsp;&nbsp;&nbsp; coneActor = vtkActor()<BR>&nbsp;&nbsp;&nbsp; coneActor.SetMapper(coneMapper)<BR>&nbsp;&nbsp;&nbsp; ren.AddActor(coneActor)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; renWin.SetWindowInfo(str(frame.GetHandle()))<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; frame.Show(1)<BR>&nbsp;&nbsp;&nbsp; renWin.Render()<BR>&nbsp;&nbsp;&nbsp; app.MainLoop()</DIV>
<DIV>&nbsp;</DIV>
<DIV>if __name__ == "__main__":<BR>&nbsp;&nbsp;&nbsp; Test()<BR></DIV>
<DIV>but it also crash on exit, but this time python handles it in a Runtime error message box :</DIV>
<DIV>"R6025 - pure virtual function call"</DIV>
<DIV>&nbsp;</DIV>
<DIV>What's wrong ?</DIV><p><br><hr size=1><font face=arial size=-1>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !<br>
<a href=http://fr.mail.yahoo.com>Testez le nouveau Yahoo! Mail</a></font>