From: malaterre Date: Fri, 30 Apr 2004 19:41:56 +0000 (+0000) Subject: DOC: Comment X-Git-Tag: Version0.5.bp~209 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4a78ecc7476981eec429361507981c38f9bbaa8f;p=gdcm.git DOC: Comment --- diff --git a/Testing/TestBug.cxx b/Testing/TestBug.cxx index 4d3f22e1..dbd37889 100644 --- a/Testing/TestBug.cxx +++ b/Testing/TestBug.cxx @@ -1,4 +1,7 @@ // The following crashes on Win32 +// We have to be carefull when the code both use cout + printf VC++ gets +// confused, thus make sure we use only one kind of iostream + #include "gdcm.h" int bug1(int argc, char* argv[]) @@ -6,9 +9,8 @@ int bug1(int argc, char* argv[]) gdcmHeader* e1; if (argc > 1) - e1 = new gdcmHeader(argv[1]); - else - { + e1 = new gdcmHeader( argv[1] ); + else { std::string filename = GDCM_DATA_ROOT; filename += "/test.acr"; e1 = new gdcmHeader( filename.c_str() );