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
DcmDicomDir constructor stack overflow c++
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2517
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: DcmDicomDir constructor stack overflow c++
Which version of the DCMTK are you using? Does it work with dcmgpdir/dcmmkdir?
Re: DcmDicomDir constructor stack overflow c++
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.
I don't know what dcmgpdir/dcmmkdir is, even if i saw it a lot on forums.
Re: DcmDicomDir constructor stack overflow c++
I just don't understand how dcmgpdir/dcmmkdir is working, what i have to do to install it or use it.
-
- DCMTK Developer
- Posts: 2517
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: DcmDicomDir constructor stack overflow c++
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:
Re: DcmDicomDir constructor stack overflow c++
All i get when i try something in the cmd.exe is dcmgpdir not recognized as a command
Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot] and 1 guest