<div dir="ltr">If you build your VTK Debug you you should see more.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 23, 2013 at 11:24 AM, Joseph Melnyk <span dir="ltr">&lt;<a href="mailto:JMelnyk@pile.com" target="_blank">JMelnyk@pile.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the suggestion.  I can&#39;t trace directly into the vtk dll&#39;s for more information.  The stack trace just tells me where they&#39;ve failed in the .h file, which is just the New() call.<br>

<br>
As I said, some objects will instantiate and can be used just fine.  For example, I can use vtkTable and vtkFloatArray just fine but then when I try to use vtkContextView or vtkInteractorStyleTrackballCamera, the New() event fails.<br>

<br>
Regards<br>
Joseph Melnyk<br>
<div class="im"><br>
<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Robert Maynard [mailto:<a href="mailto:robert.maynard@kitware.com">robert.maynard@kitware.com</a>]<br>
&gt; Sent: Tuesday, July 23, 2013 9:14 AM<br>
&gt; To: Joseph Melnyk<br>
&gt; Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Subject: Re: [vtkusers] VTK 6.0 with Visual Studio<br>
&gt;<br>
</div><div><div class="h5">&gt; Are you able to provide more information on the exact violation exceptions<br>
&gt; with a back trace? Access violations can occur when you call methods on a<br>
&gt; NULL object, so it could be a case that a object factory that is NULL is being<br>
&gt; asked to create classes.<br>
&gt;<br>
&gt; On Mon, Jul 22, 2013 at 2:45 PM, Joseph Melnyk &lt;<a href="mailto:JMelnyk@pile.com">JMelnyk@pile.com</a>&gt; wrote:<br>
&gt; &gt; I&#39;m attempting to port an existing code base from VTK 5.10 to 6.0.  This<br>
&gt; code base has existed and worked happily with VTK 5.x for a few years now,<br>
&gt; being built with Visual Studio 2008.  When I began the port to 6.0, I followed<br>
&gt; the migration guide found here:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guide" target="_blank">http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guide</a> and the code builds<br>
&gt; and links just fine.  However, when I run it, I&#39;m getting access violation<br>
&gt; exceptions (attempts to read/write protected memory) when I try<br>
&gt; instantiating with New().  Researching further, I see that this problem is<br>
&gt; mentioned here:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_de" target="_blank">http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_de</a><br>
&gt; fines  HOWEVER I&#39;m not getting NULL objects with the New() call, I&#39;m getting<br>
&gt; exceptions.  Furthermore, it doesn&#39;t happen with every VTK object; some<br>
&gt; instantiate and can be used just fine.  Nonetheless, I tried the suggestions at<br>
&gt; the second link, regarding definition of VTK AUTOINIT, and they proved<br>
&gt; fruitless.  So I&#39;m currently at a loss...<br>
&gt; &gt;<br>
&gt; &gt; For what it&#39;s worth, I&#39;m building VTK with CMAKE and the only options I&#39;m<br>
&gt; changing from the default configuration are the following:<br>
&gt; &gt; - build shared libs<br>
&gt; &gt; - don&#39;t build TESTING<br>
&gt; &gt; - set custom install directory<br>
&gt; &gt;<br>
&gt; &gt; Thanks for your time; any help would be greatly appreciated...<br>
&gt; &gt; Joseph Melnyk<br>
&gt; &gt;<br>
&gt; &gt; __Scanned by MessageLabs<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; &gt;<br>
&gt; &gt; Visit other Kitware open-source projects at<br>
&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt; &gt;<br>
&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; &gt;<br>
&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
</div></div>&gt; _Scanned by MessageLabs<br>
<div class="HOEnZb"><div class="h5"><br>
__Scanned by MessageLabs<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>