Thanks for the reply Jothy. I did not know it before. I have mixed debug and release modes. The problem was with calling Interactor.<div> I used vtkmfc examples and now it is working fine.<br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 6:24 PM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;</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 Sun, Feb 26, 2012 at 9:58 PM, Gishara Indeewarie &lt;<a href="mailto:gish.777@gmail.com">gish.777@gmail.com</a>&gt; wrote:<br>

&gt; Thanks for the reply. I replaced render-&gt;Render() to renWin-&gt;Render(). But<br>
&gt; it did not solve the problem.<br>
<br>
</div>Are you mixing Debug and Release builds in the same application? In<br>
Visual Studio you can not compile VTK (or any other part) in Release<br>
(using shared libraries) then try to run your application in Debug<br>
mode.<br>
<span class="HOEnZb"><font color="#888888"><br>
John<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div></div><font color="#666666">Gish</font><br>
</div>