-// copyH->InsertBinEntry( b->GetBinArea(),b->GetLength(),
-// b->GetGroup(),b->GetElement(),
-// b->GetVR() );
- (void)b;
- }
- else if ( gdcm::ValEntry *v = dynamic_cast<gdcm::ValEntry*>(d) )
- {
- if ( !CheckVM(v) )
+ if ( v->GetVM() != GDCM_NAME_SPACE::GDCM_UNKNOWN )
+ if ( !CheckVM(v) )
+ {
+ if (v->GetVM() == "FIXME" )
+ std::cout << "For Tag " << v->GetKey() << " VM = ["
+ << v->GetVM() << "]" << std::endl;
+
+ std::cout << "Tag (" << v->GetKey()
+ << ")-> [" << v->GetName() << "] VR :" << v->GetVR()
+ << " contains an illegal VM. Expected VM :["
+ << v->GetVM() << "], value [" << v->GetString() << "]"
+ << std::endl;
+ }
+
+ if ( v->GetReadLength() % 2 )