[vtkusers] vtkImageWriter produces segmentation fault

kitknow philip.beelmann at gmail.com
Sun May 29 07:21:12 EDT 2011


Hi!

following Code produces segmentation faults:

class::method(vtkRenderWindow *ren){
    w2i = windowToImageFilter::New();
    w2i->SetInput(ren);
    w2i->Update();

    wrt = vtkImageWriter::New();
    wrt->SetFileName("test");    
    wrt->SetInput(w2i->GetOutput());
    
    //LOG_TRACE(logger, "comment");

    wrt->Write();
}

and if you uncomment the LOG_TRACE it works for small resolution windows.
The LOG_TRACE only prints some lines on the Commandline - so i believe its
kind a race condition - but where and how to avoid?

Thanks!
regards Philip

--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageWriter-produces-segmentation-fault-tp4436844p4436844.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list