[Dcmlib] R: error parsing (2)

Lazzarato Dr. Gianni lazzadrgi at libero.it
Mon Jun 18 14:55:05 CEST 2007


Hi Jean_ Pierre,

Sure, I am sending the complete dataset(as I retrieve from cd-rom, no
directory are present).

I tested parsing only under window, not under Linux...

Thanks a lot
Gianni




-----Messaggio originale-----
Da: Jean-Pierre Roux [mailto:jpr at creatis.insa-lyon.fr] 
Inviato: lunedì 18 giugno 2007 13.55
Cc: Lazzarato Dr. Gianni; Mailing list gdcm
Oggetto: Re: [Dcmlib] error parsing (2)

Jean-Pierre Roux wrote:
> OK, Gianni.
> The trouble is fixed.
> Could you cvs update the last gdcm.
>
> --> And important DataElement (called 'Sequence Terminator') is missing 
> a the end of file.
> The parsing crashed (on Windows, not on Linux ?!?)
>
> Just a question :
> The file does *not* seem to be  a kosher DicomDir  (the supposed-to-be 
> mandatory entries PATIENT and STUDY are missing)
>   

Well...
After reading Mathieu's post, I think your DicomDir-like file is not so  
strange.
It's possible to have, for instance, a 'partial DicomDir' in each Serie 
Directory.
Right now, gdcm doesn't deal with that.
:-(
Your application shouldn't crash, now, but anybody trying to use 
gdcm::DicomDir struff with you data will crash.

Could you send me a full data set, so I can fix definitively the pb.
Thx.
JP

 
> On with imager do you produce such a file.
>
> Thx
> Jean-Pierre Roux
>
>
>
> 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: 
>>    
>>   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
>>   
>>     
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>
>   





More information about the Dcmlib mailing list