[Dcmlib] error parsing

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Mon Jun 18 10:47:41 CEST 2007


Lazzarato Dr. Gianni wrote:
> Hi Jean-Pierre,
>               how are you?
>               Excuse me for another question : loading a dataset from a
> CD-ROM ( I include a portion attached to this mail ) I got an error in this
> point of the code: 
>   

Hi, Gianni.
Thank you for reporting the bug.
Right now, we never had a dicomdir within the same directory than the 
images...
It's up to the SerieHelper to drop the file, not to the user to ask for 
dropping it.
I'll fix the bug.

--> Could you post your messages to dcmlib at creatis.univ-lyon1.fr, so we 
keep a track in the mailing list, it may be usefull for other people if 
they have a similar problem.

Jean-Pierre Roux



>    
>   gdcm::SerieHelper *sh = gdcm::SerieHelper::New();
>   sh->SetLoadMode(gdcm::LD_ALL);       // Load all for each file
>   sh->SetDirectory(fold.c_str(),true); // Recursive parsing
>
>   this code raise an exception in GDCMDdoocument.cxx
>   at line 930->  throw FormatError( "Document::ReadBegBuffer()", " file
> error." );
>
>   the problem is related to the file 8gbb666f.dcm 
>   ( I suppose it is a kind of dicomdir...)
>
>   If I copy data on HD and erase this file, the parser work correctly and
> seriehelp load correctly the serie.
>
>   Is it possible to use sh->AddRestriction()function (or other approach) to
> exclude 8gbb666f.dcm file  from parsing without deleting it? (because it
> resides in the cd-rom so it is impossible to erase).
>   What kind of sintax could be used?
>
>   Thank you for your kind attention.
>
>   Gianni
>   



More information about the Dcmlib mailing list