<div dir="ltr">Francesco,<div><br></div><div>If you are using Visual Studio directly, then you need to define some symbols either in your code or as /D options. This sets up VTK's object factory so that you can instantiate vtkActors - if you don't define these symbols, all invocations to vtkActor::New() will return NULL, which is leading to the error you are seeing.</div><div><br></div><div>See these threads for some details on using VTK_AUTOINIT definitions to set up the VTK factory:</div><div><br></div><div><a href="http://vtk.1045678.n5.nabble.com/probe-vtk6-installation-for-AUTOINIT-values-td5715271.html">http://vtk.1045678.n5.nabble.com/probe-vtk6-installation-for-AUTOINIT-values-td5715271.html</a><br></div><div><br></div><div><a href="http://vtk.1045678.n5.nabble.com/VTK-6-1-linking-autoinit-td5723342.html">http://vtk.1045678.n5.nabble.com/VTK-6-1-linking-autoinit-td5723342.html</a><br></div><div><br></div><div>There is also some useful information here:</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Build_System_Migration#Implementation_Modules">http://www.vtk.org/Wiki/VTK/Build_System_Migration#Implementation_Modules</a></div><div><br></div><div>HTH,</div><div>Cory</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 3:30 AM, francesco.argese <span dir="ltr"><<a href="mailto:kekko84@gmail.com" target="_blank">kekko84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1) No, I'm not using CMake. I'm using Visual Studio.<br>
<br>
2) Stack trace after run-time error:<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5734832/Immagine2.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5734832/Immagine2.png</a>><br>
<br>
Thanks,<br>
Francesco<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Error-porting-from-VTK-5-10-to-VTK-6-1-tp5734818p5734832.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Error-porting-from-VTK-5-10-to-VTK-6-1-tp5734818p5734832.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>