An error about dbghead.c~help~

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
crescent
Posts: 1
Joined: Wed, 2010-02-24, 07:11

An error about dbghead.c~help~

#1 Post by crescent »

I had set the configure include all the .h and lib successed in VC6.

Then I new a dialog MFC project in VC6 and write these code in the event of Button1 click:

void CGetPatientNameDlg::OnButton1()
{
// TODO: Add your control notification handler code here

DcmFileFormat fileformat;
OFCondition status = fileformat.loadFile("C:\\Image\\afwe.dcm");
}

Then there is an error:
Image

click OK and continue, then:
Image

I traced it, and found the error occured in these codes in dcmdata\libsrc\dcsequen.cxx:

DcmSequenceOfItems::~DcmSequenceOfItems()
{
DcmObject *dO;
itemList->seek(ELP_first);
while (!itemList->empty())
{
dO = itemList->remove();
delete dO;
}
delete itemList;
}

and be specific, the error occured in this code:

delete dO;

and at the sametime I found that the size of itemList >= 1 and the error occured when delete the last element in itemList and when the error occured, the dO->Tag->tagName and dO->Tag->privateCreator are NULL.

I am so puzzled about it and I hope someone will give me a help.
I am a Chinese so I am poor in writing, I am sorry.

Post Reply

Who is online

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