DcmDicomDir constructor stack overflow c++

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jgorny
Posts: 5
Joined: Wed, 2014-06-11, 10:31

DcmDicomDir constructor stack overflow c++

#1 Post by jgorny »

Hi,

I'm actually working with DCMTK. I have to open DICOMDIR file and everything was fine with all the files i had until now. I want to open a DICOMDIR way bigger than the files i was used to open. It refers approximatively to 10000 files and the DcmDicomDir constructor create a stack overflow each time i try to open this DICOMDIR.

Here is my code :

DcmDicomDir dicomdir(_path);
DcmDirectoryRecord *root = &dicomdir.getRootRecord();
DcmDirectoryRecord *rootTest = new DcmDirectoryRecord(*root);
DcmDirectoryRecord *PatientRecord = NULL;
DcmDirectoryRecord *StudyRecord = NULL;
DcmDirectoryRecord *SeriesRecord = NULL;
DcmDirectoryRecord* image = NULL;

The error occurs on the line DcmDicomDir dicomdir(_path);

I've already found that only topic speaking about a similar error :

viewtopic.php?t=2996

but there is no answer and this guy made his program work in release. It doesn't work for me.

If needed, i can send you the buged file.

Thank you,

Jules

J. Riesmeier
DCMTK Developer
Posts: 2503
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: DcmDicomDir constructor stack overflow c++

#2 Post by J. Riesmeier »

Which version of the DCMTK are you using? Does it work with dcmgpdir/dcmmkdir?

jgorny
Posts: 5
Joined: Wed, 2014-06-11, 10:31

Re: DcmDicomDir constructor stack overflow c++

#3 Post by jgorny »

I'm using the last version of DCMTK.

I don't know what dcmgpdir/dcmmkdir is, even if i saw it a lot on forums.

jgorny
Posts: 5
Joined: Wed, 2014-06-11, 10:31

Re: DcmDicomDir constructor stack overflow c++

#4 Post by jgorny »

I just don't understand how dcmgpdir/dcmmkdir is working, what i have to do to install it or use it.

J. Riesmeier
DCMTK Developer
Posts: 2503
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: DcmDicomDir constructor stack overflow c++

#5 Post by J. Riesmeier »

These are command line tools that are part of the DCMTK and show how to create a DICOMDIR. Documentation is available, of course. Even online:

jgorny
Posts: 5
Joined: Wed, 2014-06-11, 10:31

Re: DcmDicomDir constructor stack overflow c++

#6 Post by jgorny »

All i get when i try something in the cmd.exe is dcmgpdir not recognized as a command

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest