Search found 1531 matches
- Tue, 2025-04-22, 12:32
- Forum: DCMTK - General
- Topic: DcmPixelData::chooseRepresentation allocation failure
- Replies: 4
- Views: 894
Re: DcmPixelData::chooseRepresentation allocation failure
No, there is no way to prevent this, because DCMTK cannot know how much memory can be allocated safely (that would require very operating system specific code). DCMTK expects the new operator to return NULL in this case (because we are using the non-throwing version), and will in this case return an...
- Tue, 2025-04-22, 12:28
- Forum: DCMTK - General
- Topic: DIMSE_NOTHING Command Field received for "builtin" DCMTK_DEFAULT_DICT CMake option
- Replies: 2
- Views: 262
Re: DIMSE_NOTHING Command Field received for "builtin" DCMTK_DEFAULT_DICT CMake option
Weird. Perhaps you can check if in dcmdata/libsrc/dcdictbi.cc the code branch following
#if DCM_DICT_DEFAULT == DCM_DICT_DEFAULT_USE_BUILTIN
is compiled. This array is the built-in data dictionary that should but apparently is not present in your compiled code.- Sun, 2025-04-20, 22:19
- Forum: DCMTK - General
- Topic: DcmPixelData::chooseRepresentation allocation failure
- Replies: 4
- Views: 894
Re: DcmPixelData::chooseRepresentation allocation failure
DcmElement::newValueField() explicitly uses operator new (std::nothrow) , and has been doing so in all DCMTK versions since 2009. If the new handler still throws an exception, this is due either to a compiler bug, or to a user-specific new handler being installed that ignores std::nothrow. MFC is k...
- Mon, 2025-04-07, 21:30
- Forum: DCMTK - General
- Topic: Question About Sparse WSI DICOM
- Replies: 5
- Views: 13714
Re: Question About Sparse WSI DICOM
1. Is it normal for DcmFileFormat::loadFile() to take longer depending on the DICOM file size (or number of fragments)? Yes. While DCMTK will not read the entire file into memory, it needs to analyze the structure and skip (seek) over larger chunks of pixel data. While this is faster than reading t...
- Fri, 2025-03-28, 10:50
- Forum: DCMTK - General
- Topic: Send DICOM images from dcmqrscp-tls to tls-server failed
- Replies: 1
- Views: 11374
Re: Send DICOM images from dcmqrscp-tls to tls-server failed
I would classify this as a bug. Note that the TLS support in dcmqrscp is new (introduced with the current version 3.6.9), and the movescu command line tool does not yet support TLS at all. This may explain why nobody has noticed this yet. Currently dcmqrscp indeed opens move sub-associations using u...
- Fri, 2025-03-21, 16:16
- Forum: DCMTK - Installation
- Topic: dcmtk's CMAKE and external libs
- Replies: 7
- Views: 26509
Re: dcmtk's CMAKE and external libs
Thanks for the suggestion. I have just committed the improved description to our testing branch. This should become visible in the public git in a couple of days.
- Wed, 2025-03-19, 10:56
- Forum: DCMTK - Installation
- Topic: dcmtk's CMAKE and external libs
- Replies: 7
- Views: 26509
Re: dcmtk's CMAKE and external libs
The documentation for BUILD_SHARED_LIBS says that if enabled the setting overrides the value of DCMTK_COMPILE_WIN32_MULTITHREADED_DLL , which is set to ON, i.e. in this case DCMTK is compiled with /MD or /MDd, respectively. If you have suggestions on how to make the wording easier to understand or c...
- Tue, 2025-03-18, 17:09
- Forum: DCMTK - Installation
- Topic: dcmtk's CMAKE and external libs
- Replies: 7
- Views: 26509
Re: dcmtk's CMAKE and external libs
When you combine libraries compiled with a different runtime model, the Windows linker will issue a warning about incompatible runtime libraries. If you don't see that, everthing should be fine.
- Wed, 2025-03-12, 17:21
- Forum: DCMTK - General
- Topic: message: Association Release Failed
- Replies: 2
- Views: 10005
Re: message: Association Release Failed
This is not what should be happening, but I suspect that the problem is on the fo-dicom side. The protocol for closing a DICOM network association requires one side (usually the client, as with findscu or echoscu) to send an A-RELEASE-RQ message to the server, indicating the wish to close the networ...
- Mon, 2025-03-10, 17:10
- Forum: DCMTK - General
- Topic: HAVE_STD__NOTHROW defined but exception is still thrown
- Replies: 12
- Views: 16881
Re: HAVE_STD__NOTHROW defined but exception is still thrown
I think that this behaviour might be related to the use of MFC. As far as I know, the MFC comes with it's own implementation of operator new that calls AfxThrowMemoryException() if a block of memory cannot be allocated. Perhaps this implementation also ignores std::nothrow. Adjusting the link order ...
- Sun, 2025-03-09, 08:12
- Forum: DCMTK - General
- Topic: DCMTK IPV6 support
- Replies: 9
- Views: 21438
Re: DCMTK IPV6 support
IPv6 support is not high on the list of priorities for the development team, the main reason being that our network infrastructure is IPv4 only, which makes it very difficult to develop and debug this. Unless somebody provides a patch / pull request for adding server-side IPv6 support, I do not see ...
- Sun, 2025-03-02, 22:36
- Forum: DCMTK - General
- Topic: Receiving Association failed: 0006:0321 Unrecognized PDU type: 47
- Replies: 5
- Views: 20524
Re: Receiving Association failed: 0006:0321 Unrecognized PDU type: 47
The "unrecognized PDU type" message indicates that something that is not DICOM tries to connect to that port.
The timeout might be caused by an attempt to look up the hostname using a reverse DNS lookup. Try running storescp with the
The timeout might be caused by an attempt to look up the hostname using a reverse DNS lookup. Try running storescp with the
--disable-host-lookup
option.- Wed, 2025-02-26, 16:00
- Forum: DCMTK - General
- Topic: file size got reduced
- Replies: 7
- Views: 19628
Re: file size got reduced
When writing a new DICOM file, the meta-header will be re-created from scratch, unless you use certain options in DcmFileFormat::saveFile(). Specifically, the implementation class UID and version name refer to the "implementation" that has written the file, which is DCMTK for the new file....
- Sat, 2025-02-22, 18:16
- Forum: DCMTK - General
- Topic: file size got reduced
- Replies: 7
- Views: 19628
Re: file size got reduced
If I remember correctly, it should be possible to write a DICOM file in a different transfer syntax without all data getting loaded, as long as both the original transfer syntax and the new one are uncompressed (or Deflate). It should be easy for you to test this. Just don't call loadAllDataIntoMemo...
- Mon, 2025-02-17, 15:49
- Forum: DCMTK - General
- Topic: Issue with DCMTK(dcmdata.lib) Library - unresolved external symbol(DcmItem::findAndGetOFString)
- Replies: 8
- Views: 17302
Re: Issue with DCMTK(dcmdata.lib) Library - unresolved external symbol(DcmItem::findAndGetOFString)
Very good question. That should have produced the same error as in your release build.However, I have one more question—why was it working in Debug mode before enabling this setting?