View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013102VTK(No Category)public2012-04-17 02:222012-04-22 21:01
ReporterjhChoi 
Assigned To 
PriorityhighSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0013102: problem with vtkStringArray (vtk5.10 rc2, vs2010)
Descriptionhi all

i want to use as like below code.
 

It was no problem under vtk.5.4.2 vs2008
 

but i upgraded the both of vtk and vs.(vtk5.10 rc2, vs2010)


then i have problem with vtkStringArray.
 

do InsertNextValue() but nothing in the array.


how can i fix it?

 
please help me.

 

here is a fraction of my code

---------------------------------------------

 vtkStringArray* sarray = vtkStringArray::New();

 char szFilter[] = "dcm files(*.dcm) || *.dcm";
 CFileDialog dlg(TRUE, NULL, NULL, OFN_ALLOWMULTISELECT, szFilter);

 char buffer[4096] = {0};
 dlg.m_ofn.lpstrFile = buffer;
 dlg.m_ofn.nMaxFile = 4096;

 if(IDOK == dlg.DoModal())
  for(POSITION pos=dlg.GetStartPosition(); pos != NULL;)
  {
   CString strFilePath = dlg.GetNextPathName(pos);
   sarray->InsertNextValue(strFilePath);
  }
 else
  return false;
TagsNo tags attached.
ProjectKitware
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0028488)
Jean-Christophe Fillion-Robin (manager)
2012-04-17 17:58

Hi,

Can you successfully run the VTK test named "otherStringArray" ?

See http://vtk.org/gitweb?p=VTK.git;a=blob;f=Common/Testing/Cxx/otherStringArray.cxx;h=ea50302ad1a88a871c4dfda583ef28a3c0bc9084;hb=8b3d93bf1690dc6337618a08f096e84243725c1f [^]
(0028490)
jhChoi (reporter)
2012-04-19 21:10

Hi
"OtherstringArray" does not working also.
,,,
"vtkStringArray" can not make array.

i try to serveral simple codes which are compiled in upto vtk5.8 successly,
and they have value in the array.

but in vtk5.10 there have yet problem, the array is empty.

the simple code is like that

vtkStringArray* array = vtkStringArray::New();
array->SetName("array");
array->InsertNextValue("abc");
(0028510)
jhChoi (reporter)
2012-04-22 21:01

it's overwirted problem when i install the dll.
it is overlapped debug dll and release dll

 Issue History
Date Modified Username Field Change
2012-04-17 02:22 jhChoi New Issue
2012-04-17 17:58 Jean-Christophe Fillion-Robin Note Added: 0028488
2012-04-19 21:10 jhChoi Note Added: 0028490
2012-04-22 21:01 jhChoi Note Added: 0028510
2012-04-22 21:01 jhChoi Status backlog => closed
2012-04-22 21:01 jhChoi Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team