<div dir="ltr">Hi,<div><br></div><div>Please see this page.</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines">http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines</a><br></div><div><br></div><div>It will explain why you are getting NULL objects and how to fix the problem.</div><div><br></div><div>Best,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 14, 2016 at 7:37 AM, xy_xy <span dir="ltr"><<a href="mailto:carmen.liechti@vtg.admin.ch" target="_blank">carmen.liechti@vtg.admin.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I'm trying to do something with VTK. I tryed some example but nothing works.<br>
The Fail are always a null pointer (Position 0x00000000) and I don't know<br>
why it is null.<br>
Can anybody help me?<br>
<br>
Thanks<br>
<br>
<br>
#include "vtkGraphLayoutView.h"<br>
#include "vtkRandomGraphSource.h"<br>
#include "vtkRenderWindow.h"<br>
#include "vtkRenderWindowInteractor.h"<br>
<br>
vtkRandomGraphSource* source = vtkRandomGraphSource::New();<br>
vtkGraphLayoutView* view = vtkGraphLayoutView::New(); *// <= Fail!*<br>
view-><wbr>SetRepresentationFromInputConn<wbr>ection(source->GetOutputPort()<wbr>);<br>
<br>
view->ResetCamera();<br>
view->Render();<br>
view->GetInteractor()->Start()<wbr>;<br>
<br>
source->Delete();<br>
view->Delete();<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Fail-because-Position-0x00000000-tp5740771.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/Fail-because-Position-<wbr>0x00000000-tp5740771.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<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/<wbr>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_<wbr>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=<wbr>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/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div>