[vtkusers] vtkStringArray problem

mbcx9rb9 richard.j.brown at live.co.uk
Wed Dec 3 04:45:33 EST 2014

Hi all,

I'm trying to put all DICOM files within a directory into a vtkStringArray
so that I can check how many series there are. The problem, however, seems
to be that InsertNexValue() and SetNumberOfValues() followed by SetValue()
don't insert anything into the array. So, after a for loop of 160
vtkStdStrings, GetNumberOfValues() returns 160, but each value is empty.
Furthermore, GetValue() causes the program to crash. Any ideas?

I need to use vtkStringArray (as opposed to a vector of std::string etc.),
as this is the required argument for vtkDICOMSorter ( link

Any help greatly appreciated,

View this message in context: http://vtk.1045678.n5.nabble.com/vtkStringArray-problem-tp5729638.html
Sent from the VTK - Users mailing list archive at Nabble.com.

More information about the vtkusers mailing list