Search found 12 matches

by nbeck
Thu, 2024-04-25, 12:06
Forum: DCMTK - General
Topic: Crash on shutdown of DcmQueryRetrieveSCP
Replies: 3
Views: 83

Re: Crash on shutdown of DcmQueryRetrieveSCP

Thanks for the prompt reaction. Your patch fixes the problem for me.
by nbeck
Wed, 2024-04-24, 13:22
Forum: DCMTK - General
Topic: Crash on shutdown of DcmQueryRetrieveSCP
Replies: 3
Views: 83

Crash on shutdown of DcmQueryRetrieveSCP

Hello! I am trying to set up a test environment for my application's DICOM communication. To this end, I start a thread that runs an instance of DcmQueryRetrieveSCP. At the end of all test runs this thread needs be terminated, which I am trying to do with the private shutdown SOP. However, this caus...
by nbeck
Mon, 2024-04-22, 16:04
Forum: DCMRT
Topic: How to write contour sequence to DICOM file
Replies: 2
Views: 163

Re: How to write contour sequence to DICOM file

Thank you for the clarification. I wasn't aware that DRTStructureSetIOD checks the data before writing it. I did try to set all necessary fields, but I wanted to post a minimal example here. Apparently I missed some vital field. And you are right, I should have checked the log for details. Anyway, i...
by nbeck
Thu, 2024-04-18, 08:42
Forum: DCMRT
Topic: How to write contour sequence to DICOM file
Replies: 2
Views: 163

How to write contour sequence to DICOM file

Hello! I am trying to create a DICOM file containing an RT structure set with a contour sequence, unsuccessfully so far. I found some helpful posts in this forum, so I combined the example code from How to add DRTContourSequence::Item to an DRTROIContourSequence::Item and How to write Dcm file for R...
by nbeck
Thu, 2023-02-16, 09:16
Forum: DCMRT
Topic: Unable to read DRTImage
Replies: 3
Views: 5483

Re: Unable to read DRTImage

Yes, that looks good to me. Checking for NULL is definitely a good idea. Thank you for your report and detailed analysis. It seems that no one ever used this method before - including the author of this class :? I was also surprised that nobody had found this issue until now. Probably everyone else ...
by nbeck
Wed, 2023-02-15, 15:01
Forum: DCMRT
Topic: Unable to read DRTImage
Replies: 3
Views: 5483

Unable to read DRTImage

Hello, I tried to read an RT image using DRTImage::read(DcmItem *dataset). However, this fails even though I am fairly confident that the data is valid. Looking at the code, I noticed that DRTImage::read() appears to call DRTImageIOD::read() with the argument *format_.getDataset() although format_ h...
by nbeck
Wed, 2023-02-15, 12:40
Forum: DCMTK - Installation
Topic: Compiling DCMTK with C++11/14/17 Features with MSVC
Replies: 3
Views: 5332

Re: Compiling DCMTK with C++11/14/17 Features with MSVC

I noticed that you have created a ticket for this issue: https://support.dcmtk.org/redmine/issues/1047.

Thanks for your work!
by nbeck
Wed, 2023-02-15, 12:27
Forum: DCMRT
Topic: Invalid item in loop over sequences
Replies: 7
Views: 8721

Re: Invalid item in loop over sequences

I understand. Thank you for your efforts, I am looking forward to the next release.
by nbeck
Mon, 2023-02-13, 16:42
Forum: DCMRT
Topic: Invalid item in loop over sequences
Replies: 7
Views: 8721

Re: Invalid item in loop over sequences

Thank you for the suggestion. With this code everything works as expected! It also matches the implementation in other parts of DCMTK, e.g. DSRCodingSchemeIdentificationList::gotoNextItem() or DSRReferencedInstanceList::gotoNextItem(), so it is hopefully well tested. You are probably aware of this, ...
by nbeck
Fri, 2023-01-27, 14:54
Forum: DCMRT
Topic: Invalid item in loop over sequences
Replies: 7
Views: 8721

Invalid item in loop over sequences

Hello! i've stumbled across some unexpected error messages today, when performing loops over sequences of the following kind: do { DRTROIContourSequence::Item& currentContour = rtROIContourSequence.getCurrentItem(); if (currentContour.isValid()) { // doSomething } else { std::cerr << "Error...
by nbeck
Tue, 2022-11-08, 14:54
Forum: DCMTK - Installation
Topic: Compiling DCMTK with C++11/14/17 Features with MSVC
Replies: 3
Views: 5332

Re: Compiling DCMTK with C++11/14/17 Features with MSVC

After some digging I found that the problem occurs in dcmtk\config\tests\cxx11.cc. The code checks for the macro __cplusplus: #elif __cplusplus < 201103L #error "This is not a C++11 compiler" Unfortunately, MSVC doesn't set this macro correctly. From https://learn.microsoft.com/en-us/cpp/b...
by nbeck
Mon, 2022-11-07, 14:21
Forum: DCMTK - Installation
Topic: Compiling DCMTK with C++11/14/17 Features with MSVC
Replies: 3
Views: 5332

Compiling DCMTK with C++11/14/17 Features with MSVC

Hello, I managed to compile the toolkit with Visual Studio 2022. However, I noticed that CMake disabled the features of newer C++ versions: Checking whether the compiler supports C++11 Checking whether the compiler supports C++11 -- no Info: C++11 features disabled Info: C++14 features disabled Info...