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:
click OK and continue, then:
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.
An error about dbghead.c~help~
Moderator: Moderator Team
Who is online
Users browsing this forum: Bing [Bot] and 1 guest