Search found 8 matches

by nbeck
Thu, 2023-02-16, 09:16
Forum: DCMRT
Topic: Unable to read DRTImage
Replies: 3
Views: 2914

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: 2914

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: 2906

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: 4581

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: 4581

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: 4581

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: Invalid...
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: 2906

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/build/refer...
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: 2906

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...