<div dir="ltr"><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US"><span style="font-family:arial,helvetica,sans-serif">Joris,<br><br>Are you sure your m_pcActor object exists or is correctly initialized?</span><br>

</span></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>PhD, Technical Expert</i></font><br>

<b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div>
<br><br><div class="gmail_quote">2014-06-13 16:50 GMT+02:00 joris <span dir="ltr"><<a href="mailto:datkenwel@hotmail.com" target="_blank">datkenwel@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div><div dir="ltr"><p><span style="color:blue;font-family:Consolas;font-size:9.5pt">int</span><span style="font-family:Consolas;font-size:9.5pt"> RenderTranslucentPolygonalGeometry(vtkViewport* viewport)</span></p><font face="Times New Roman"></font><p>

<span style="font-family:Consolas;font-size:9.5pt">{</span></p><font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt">    </span><span style="color:blue;font-family:Consolas;font-size:9.5pt" lang="EN-US">int</span><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US"> count = 0;</span></p>

<font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US"> </span></p><font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US">    <span style="color:blue">if</span> (m_pcActor->GetVisibility())</span></p>

<font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US">    {</span></p><font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US">             <span style="color:blue">if</span>(viewport != NULL)</span></p>

<font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US">             {</span></p><font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US">                    count = m_pcActor->RenderTranslucentPolygonalGeometry(viewport);</span></p>

<font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt" lang="EN-US">             </span><span style="font-family:Consolas;font-size:9.5pt">}</span></p><font face="Times New Roman"></font><p>

<span style="font-family:Consolas;font-size:9.5pt">    } </span></p><font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt"> </span></p><font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt">    <span style="color:blue">return</span> count;</span></p>

<font face="Times New Roman"></font><p><span style="font-family:Consolas;font-size:9.5pt">}</span></p><p><span style="font-family:Consolas;font-size:9.5pt"></span> </p><p><span style="font-family:Consolas;font-size:9.5pt"></span> </p>

<p><span style="font-family:Consolas;font-size:9.5pt"></span> </p><p><span style="font-family:Consolas;font-size:9.5pt"></span> </p><p>Hi,</p><p> </p><p>When i execute the above code I get this error:</p><p> </p><p><span style="font-family:Consolas;font-size:9.5pt">error:<span style="font-family:Consolas;font-size:9pt" lang="EN-US">Access violation reading location ...........</span></span></p>

<p><span style="font-family:Consolas;font-size:9.5pt"><span style="font-family:Consolas;font-size:9pt" lang="EN-US"></span></span> </p><p>Does anybody know how to solve this?</p><p> </p><p>Thanks!</p>                                          </div></div>


<br>_______________________________________________<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>
<br></blockquote></div><br></div>