corrupt buffer

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
ancrou
Posts: 13
Joined: Tue, 2008-07-01, 16:54
Location: Nancy France

corrupt buffer

#1 Post by ancrou »

Hello,

I've got a corrupt buffer. May it be this code ?

Code: Select all

//5400,1004	Waveform Bits Allocated
const Uint16* ptr;
if(itemWF->findAndGetUint16Array(DCM_WaveformData,ptr).good()) 
{
	//5400,1010	Waveform Data
	DcmElement* element;
	itemWF->findAndGetElement(DCM_WaveformData,element);
	unsigned long size= element->getLength();
	wave.set SizeData(size);
	wave.setDataSample(ptr);
}

Code: Select all

void WaveHemodynamic::setDataSample(const unsigned short* data){
	leadData=data;	
}

Code: Select all

void WaveHemodynamic::setSizeData(unsigned long taille){
	tailleData=taille;
}
Thinks,
Anth

ancrou
Posts: 13
Joined: Tue, 2008-07-01, 16:54
Location: Nancy France

#2 Post by ancrou »

I found my problem :P
It was just a problem of big endian / little endian :oops:

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest