Any further ideas on how to hack this? For example I don't see this problem when I open and reopen windows with mayavi which I suppose use the same technology. Perhaps they don't run into the same problem because they use vtk on top of qt or wx?. There must be a workaround I hope. Very sorry I didn't report this earlier. <br>
<br><div class="gmail_quote">On Tue, Jul 19, 2011 at 7:05 PM, Eleftherios Garyfallidis <span dir="ltr"><<a href="mailto:garyfallidis@gmail.com">garyfallidis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Unfortunately not. After added ren.SetRenderWindow(None) still get the same BadRequest error. :-(<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Jul 19, 2011 at 6:52 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>On Tue, Jul 19, 2011 at 11:39 AM, Eleftherios Garyfallidis<br>
<<a href="mailto:garyfallidis@gmail.com" target="_blank">garyfallidis@gmail.com</a>> wrote:<br>
> When I do add window.RemoveRenderer(ren) after iren.Start() the next time I<br>
> call show I get segmentation fault.<br>
<br>
</div>You've found a bug. I read through the cxx code for<br>
window.RemoveRenderer(ren) and it doesn't call<br>
ren->SetRenderWindow(NULL) like it should.<br>
<br>
You can try adding ren.SetRenderWindow(None) after RemoveRenderer()<br>
and see if that helps.<br>
<font color="#888888"><br>
- David<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>