Why are the static New methods of singleton objects in VTK public?<div><div>  static vtkMathTextUtilities *New();</div><div><br></div><div>vtkOutputWindow is also a "singleton" -- but the instance is settable by clients. That's not excluded from wrapping is it?</div>
<div><br></div><div>There's something else going on here if vtkOutputWindow works for this test, but your new singleton does not.</div><div><br></div><br><div class="gmail_quote">On Tue, Jul 10, 2012 at 3:05 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 07/10/2012 02:57 PM, David Lonie wrote:<br>
> vtkMathTextUtilities copied a singleton pattern from<br>
> vtkFreeTypeUtilities, and it looks like vtkFreeTypeUtilities is<br>
> excluded from wrapping, possibly for the same reason (singleton fails<br>
> to cleanup)?<br>
<br>
</div>I don't know the reason vtkFreeTypeUtilities is excluded.<br>
<div class="im"><br>
> vtkMathTextUtilities shouldn't need to be wrapped for any reason I can<br>
> see, any objections to WRAP_EXCLUDE'ing it to "fix" this bug?<br>
<br>
</div>Fine with me.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Brad<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br></div>