Search found 40 matches

by Niels Dekker
Fri, 2010-05-07, 11:57
Forum: DCMTK - Installation
Topic: Please allow specifying Visual C++ compiler flags in CMake
Replies: 6
Views: 10124

Hi Michael,

The latest snapshot (dcmtk-3.5.5_20100504) still resets the Microsoft Visual C++ compiler flags, even when we specify different compiler flags within cmake-gui.

Did you still have time to discuss the CMakeLists, as you planned to do after the easter days?
by Niels Dekker
Tue, 2010-04-27, 10:07
Forum: DCMTK - General
Topic: Decoder memory allocation failure causes deadlock
Replies: 3
Views: 4792

Decoder memory allocation failure causes deadlock

When a memory allocation failure occurs during decoding, we sometimes get into a deadlock (*), during a later stage. For example, when we try to cleanup() a decoder registration. The deadlock is caused by the fact that the operator new might throw an exception (std::bad_alloc). If this happens just ...
by Niels Dekker
Mon, 2010-04-26, 10:55
Forum: DCMTK - General
Topic: dcmtk-3.5.5_20100226 DiPaletteImage destructor crash
Replies: 6
Views: 6310

Hi Jörg, FYI: We will disable this warning for the next snapshot Thanks! You wrote before: However, I'm not quite sure whether this kind of array initialization really works with all kind of compilers. FYI, I'm currently testing this kind of initialization ("value-initialization"), for var...
by Niels Dekker
Wed, 2010-04-14, 17:46
Forum: DCMTK - General
Topic: DCMTK crashes on 502 x 502 Color Image.
Replies: 11
Views: 10541

Hi Jörg, I can already tell you that my colleague Jeroen Eggermont was using the February snapshot, while I'm using the snapshot of March 2010 (dcmtk-3.5.5_20100326). We both encountered the very same crash. Is the explanation clear enough to you? Jeroen observed a truncation during the calculation ...
by Niels Dekker
Wed, 2010-03-31, 14:38
Forum: DCMTK - Installation
Topic: Please allow specifying Visual C++ compiler flags in CMake
Replies: 6
Views: 10124

Thank you, Michael. Of course, we wouldn't mind if you would just remove all those SET commands: # settings for Microsoft Visual C IF(CMAKE_C_COMPILER MATCHES "CL|cl") IF(NOT WITH_SHARED_LIBS) IF(CMAKE_GENERATOR STREQUAL "Visual Studio 6") SET(CMAKE_C_FLAGS "/nologo /W3 /GX ...
by Niels Dekker
Tue, 2010-03-30, 11:37
Forum: DCMTK - Installation
Topic: Please allow specifying Visual C++ compiler flags in CMake
Replies: 6
Views: 10124

Please allow specifying Visual C++ compiler flags in CMake

We are very pleased about the snapshots being regularly updated. However, it also causes some overhead on our side, having to locally patch each snapshot before we can use it. For example, we use different Visual C++ 2008 compiler flags as we statically link to the Microsoft Runtime Library (/MD, /M...
by Niels Dekker
Fri, 2010-03-26, 17:38
Forum: DCMTK - General
Topic: dcmtk-3.5.5_20100226 DiPaletteImage destructor crash
Replies: 6
Views: 6310

warning C4351: new behavior: elements of array 'DiARGBImage::Palette' will be default initialized warning C4351: new behavior: elements of array 'DiPaletteImage::Palette' will be default initialized That's my favorite compiler warning ;-) Telling us that the compiler actually does the right thing, ...
by Niels Dekker
Fri, 2010-03-26, 15:40
Forum: DCMTK - General
Topic: dcmtk-3.5.5_20100226 DiPaletteImage destructor crash
Replies: 6
Views: 6310

Thanks, Jörg. I hadn't yet spotted the equivalent DiARGBImage bug. Value-initialization of an array, as I suggested by doing Palette(), should work fine on any modern C++ compiler. But of course, I wouldn't mind if you'd initialize the array elements in a different way, e.g., by doing Palette[0] = P...
by Niels Dekker
Fri, 2010-03-26, 12:30
Forum: DCMTK - General
Topic: dcmtk-3.5.5_20100226 DiPaletteImage destructor crash
Replies: 6
Views: 6310

dcmtk-3.5.5_20100226 DiPaletteImage destructor crash

In the latest snapshot (dcmtk-3.5.5_20100226) DiPaletteImage (dipalimg.h) contains an array of pointers, Palette: /// three color palettes for R, G and B DiLookupTable *Palette[3]; Unfortunately, the constructor of DiPaletteImage does not always initialize the elements of this array. Quoting from di...
by Niels Dekker
Fri, 2008-12-19, 16:11
Forum: DCMTK - General
Topic: DcmHashDictIterator crash because of bug in operator!=
Replies: 7
Views: 7659

Jörg Riesmeier wrote:
Will be fixed in the next snapshot.
Thanks!
by Niels Dekker
Fri, 2008-12-19, 14:55
Forum: DCMTK - General
Topic: DcmHashDictIterator crash because of bug in operator!=
Replies: 7
Views: 7659

DcmHashDictIterator crash because of bug in operator!=

dcmdata\include\dcmtk\dcmdata\dchashdi.h has the following function: OFBool operator!=(const DcmHashDictIterator& x) const { return (hindex != hindex) || (iter != x.iter); } This is clearly a bug, as (hindex != hindex) is entirely useless. Instead it should say (hindex != x.hindex) . The bug is ...
by Niels Dekker
Mon, 2007-09-24, 15:15
Forum: DCMTK - General
Topic: Undefined behavior (assert by isalpha) in DcmItem::foundVR
Replies: 8
Views: 9650

Michael Onken wrote:
I've send you an email how to download a recent CVS snapshot.
Thank you very much, Michael!

-- Niels
by Niels Dekker
Fri, 2007-09-21, 17:04
Forum: DCMTK - General
Topic: Undefined behavior (assert by isalpha) in DcmItem::foundVR
Replies: 8
Views: 9650

Michael Onken wrote:
fixed in CVS
Cool! Is the DCMTK CVS publicly accessible? Otherwise, can you please send me the fixed version, so that we can use it here at the LKEB in Leiden?

There's a mail address of mine at www.xs4all.nl/~nd/dekkerware
by Niels Dekker
Thu, 2007-09-20, 21:01
Forum: DCMTK - General
Topic: Undefined behavior (assert by isalpha) in DcmItem::foundVR
Replies: 8
Views: 9650

Jörg Riesmeier wrote: you should probably use loadFile() with read mode ERM_fileOnly. Thanks. I just tried ERM_fileOnly, but unfortunately I still got the assert failures. I guess that assertions only occur in debug mode, right? Right. But in release mode, DcmItem::foundVR might still crash, when th...
by Niels Dekker
Wed, 2007-09-19, 17:30
Forum: DCMTK - General
Topic: Undefined behavior (assert by isalpha) in DcmItem::foundVR
Replies: 8
Views: 9650

Thanks for your reply, Michael! Michael Onken (OFFIS DICOM Team) wrote: I would say it makes more sense to change the API of foundVR() from accepting char* to Uint8* instead. This would implicate corresponding changes in checkTransferSyntax() to read the characters from the input stream into an Uint...