]> Creatis software - gdcm.git/blob - Testing/TestBug.cxx
DOC: Comment
[gdcm.git] / Testing / TestBug.cxx
1 // The following crashes on Win32
2 // We have to be carefull when the code both use cout + printf VC++ gets
3 // confused, thus make sure we use only one kind of iostream
4
5 #include "gdcm.h"
6
7 int bug1(int argc, char* argv[])
8 {  
9    gdcmHeader* e1;
10         
11    if (argc > 1)
12       e1 = new gdcmHeader( argv[1] );
13    else {
14       std::string filename = GDCM_DATA_ROOT;
15       filename += "/test.acr";
16       e1 = new gdcmHeader( filename.c_str() );
17    }
18    e1->PrintPubDict();
19
20   return 0;
21 }