1 /*=========================================================================
4 Module: $RCSfile: TestBug.cxx,v $
6 Date: $Date: 2005/10/25 14:52:30 $
7 Version: $Revision: 1.21 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
18 // The following crashes on Win32
19 // We have to be carefull when the code both use cout + printf VC++ gets
20 // confused, thus make sure we use only one kind of iostream
24 int TestBug(int argc, char *argv[])
27 f = gdcm::File::New();
30 f->SetFileName( argv[1] );
32 std::string filename = GDCM_DATA_ROOT;
33 filename += "/test.acr";
34 f->SetFileName( filename.c_str() );
38 f->GetPubDict()->Print();