<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"><<a href="mailto:JMelnyk@pile.com" target="_blank">JMelnyk@pile.com</a>></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't trace directly into the vtk dll's for more information. The stack trace just tells me where they'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>
> -----Original Message-----<br>
> From: Robert Maynard [mailto:<a href="mailto:robert.maynard@kitware.com">robert.maynard@kitware.com</a>]<br>
> Sent: Tuesday, July 23, 2013 9:14 AM<br>
> To: Joseph Melnyk<br>
> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: Re: [vtkusers] VTK 6.0 with Visual Studio<br>
><br>
</div><div><div class="h5">> Are you able to provide more information on the exact violation exceptions<br>
> with a back trace? Access violations can occur when you call methods on a<br>
> NULL object, so it could be a case that a object factory that is NULL is being<br>
> asked to create classes.<br>
><br>
> On Mon, Jul 22, 2013 at 2:45 PM, Joseph Melnyk <<a href="mailto:JMelnyk@pile.com">JMelnyk@pile.com</a>> wrote:<br>
> > I'm attempting to port an existing code base from VTK 5.10 to 6.0. This<br>
> code base has existed and worked happily with VTK 5.x for a few years now,<br>
> being built with Visual Studio 2008. When I began the port to 6.0, I followed<br>
> the migration guide found here:<br>
> <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>
> and links just fine. However, when I run it, I'm getting access violation<br>
> exceptions (attempts to read/write protected memory) when I try<br>
> instantiating with New(). Researching further, I see that this problem is<br>
> mentioned here:<br>
> <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>
> fines HOWEVER I'm not getting NULL objects with the New() call, I'm getting<br>
> exceptions. Furthermore, it doesn't happen with every VTK object; some<br>
> instantiate and can be used just fine. Nonetheless, I tried the suggestions at<br>
> the second link, regarding definition of VTK AUTOINIT, and they proved<br>
> fruitless. So I'm currently at a loss...<br>
> ><br>
> > For what it's worth, I'm building VTK with CMAKE and the only options I'm<br>
> changing from the default configuration are the following:<br>
> > - build shared libs<br>
> > - don't build TESTING<br>
> > - set custom install directory<br>
> ><br>
> > Thanks for your time; any help would be greatly appreciated...<br>
> > Joseph Melnyk<br>
> ><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<br>
> > <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:<br>
> > <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>
><br>
</div></div>> _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>