Hi, <br><br>I found the bugs lies<br><br>render-&gt;AddVolume( volume );<br><br>when execute here, it points to vtkViewPort.cxx and report error vtkFiltering.dll.<br><br>Any comments on that?<br><br><br><br><div class="gmail_quote">
2009/3/18 Yang <span dir="ltr">&lt;<a href="mailto:kisszy@gmail.com">kisszy@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When running in debug, the VS2008 points to the function of vtkViewPort.cxx : <br><br>int vtkViewport::HasViewProp(vtkProp *p)<br>{<br>  return (p &amp;&amp; this-&gt;Props-&gt;IsItemPresent(p));<div><div></div><div class="h5">
<br>}<br><br><br><br><div class="gmail_quote">
2009/3/18 Yang <span dir="ltr">&lt;<a href="mailto:kisszy@gmail.com" target="_blank">kisszy@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

BTW: I use MSVC 2008, qt4.4, and VTK nightly.<br><br><div class="gmail_quote">2009/3/18 Yang <span dir="ltr">&lt;<a href="mailto:kisszy@gmail.com" target="_blank">kisszy@gmail.com</a>&gt;</span><div><div></div><div>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>When I use QVTKWidget to try volume rendering .mha file, it can be compiled successfully.<br><br>But after loading file, do Volume Rendering has problems as following:<br><br>First-chance exception at 0x5d0bca97 (vtkFiltering.dll) in XXXX.exe: 0xC0000005: Access violation reading location 0x00000048.<br>



Unhandled exception at 0x5d0bca97 (vtkFiltering.dll) in XXXXX.exe: 0xC0000005: Access violation reading location 0x00000048.<br><br>Any comments will be appreciate!<br><br>Best,<br>Daniel<br>
</blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>