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?
Search found 40 matches
- Fri, 2010-05-07, 11:57
- Forum: DCMTK - Installation
- Topic: Please allow specifying Visual C++ compiler flags in CMake
- Replies: 6
- Views: 10124
- 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 ...
- Mon, 2010-04-26, 10:55
- Forum: DCMTK - General
- Topic: dcmtk-3.5.5_20100226 DiPaletteImage destructor crash
- Replies: 6
- Views: 6310
- 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 ...
- Wed, 2010-03-31, 14:38
- Forum: DCMTK - Installation
- Topic: Please allow specifying Visual C++ compiler flags in CMake
- Replies: 6
- Views: 10124
- 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...
- 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, ...
- 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...
- 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...
- Fri, 2008-12-19, 16:11
- Forum: DCMTK - General
- Topic: DcmHashDictIterator crash because of bug in operator!=
- Replies: 7
- Views: 7659
- 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 ...
- Mon, 2007-09-24, 15:15
- Forum: DCMTK - General
- Topic: Undefined behavior (assert by isalpha) in DcmItem::foundVR
- Replies: 8
- Views: 9650
- 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:
There's a mail address of mine at www.xs4all.nl/~nd/dekkerware
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?fixed in CVS
There's a mail address of mine at www.xs4all.nl/~nd/dekkerware
- 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...
- 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...