[vtkusers] Access violation when using vtkPolyDataReader

David Cole david.cole at kitware.com
Thu Jul 28 14:53:27 EDT 2005


Is "readers" NULL (or garbage) when you enter the for loop?
Is the assert being compiled out? (release build?)

Hassan Amin wrote:

> Dear friends,
>    The following  line  readers[i]=vtkPolyDataReader::New() is giving 
> me run time error(access violation writing location ). Can any body 
> help me ?
>
> Yours,
>
> S. Hassan Amin
>
> int inputs=fp.size();
>  
> assert(readers=(vtkPolyDataReader**)calloc(inputs,sizeof(vtkPolyDataReader*))); 
>
>    for (int i=0;i<fp.size();i++)
>    {
>        readers[i]=vtkPolyDataReader::New();  // Gives me run time error
>    }
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>




More information about the vtkusers mailing list