[vtkusers] Fail because Position 0x00000000

Cory Quammen cory.quammen at kitware.com
Mon Oct 17 10:24:46 EDT 2016


Hi,

Please see this page.

http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines

It will explain why you are getting NULL objects and how to fix the problem.

Best,
Cory

On Fri, Oct 14, 2016 at 7:37 AM, xy_xy <carmen.liechti at vtg.admin.ch> wrote:

> Hi
>
> I'm trying to do something with VTK. I tryed some example but nothing
> works.
> The Fail are always a null pointer (Position 0x00000000) and I don't know
> why it is null.
> Can anybody help me?
>
> Thanks
>
>
> #include "vtkGraphLayoutView.h"
> #include "vtkRandomGraphSource.h"
> #include "vtkRenderWindow.h"
> #include "vtkRenderWindowInteractor.h"
>
> vtkRandomGraphSource* source = vtkRandomGraphSource::New();
> vtkGraphLayoutView* view = vtkGraphLayoutView::New();  *// <= Fail!*
> view->SetRepresentationFromInputConnection(source->GetOutputPort());
>
> view->ResetCamera();
> view->Render();
> view->GetInteractor()->Start();
>
> source->Delete();
> view->Delete();
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/Fail-because-Position-0x00000000-tp5740771.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161017/dcc3ec97/attachment.html>


More information about the vtkusers mailing list