Access violation invoking chooseRepresentation

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
st80rules
Posts: 190
Joined: Tue, 2007-05-08, 17:45

Access violation invoking chooseRepresentation

#1 Post by st80rules »

Hi,

we're using version 3.6.1 and code that has been stable for a long time is suddenly crashing on a specific Series, when we do:

Code: Select all

OFCond cond = newImage->chooseRepresentation(EXS_LittleEndianExplicit, NULL);
The access violation occurs in DJDecompressIJG8Bit::decode() method.

The party that reported this to me claims that another DICOM viewer is able to display the Series, hinting that the Series is sound.

What are my options here?

Thanks!

J. Riesmeier
DCMTK Developer
Posts: 2504
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Access violation invoking chooseRepresentation

#2 Post by J. Riesmeier »

First of all, I would switch to the most recent release of the DCMTK, i.e. version 3.6.5. Then, if this issue is still present, I would check what the memory consumption (RAM) is for this particular "Series".

st80rules
Posts: 190
Joined: Tue, 2007-05-08, 17:45

Re: Access violation invoking chooseRepresentation

#3 Post by st80rules »

Unfortunately, 3.6.5 does not compile with the UNICODE define on Windows, and this is important to us, so I'm apparently stuck with 3.6.1. Don't know why this restriction exists, for us it's important as our software runs internationally, i.e. in Asian languages too.

J. Riesmeier
DCMTK Developer
Posts: 2504
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Access violation invoking chooseRepresentation

#4 Post by J. Riesmeier »

DCMTK now supports the UNICODE define on windows: http://git.dcmtk.org/?p=dcmtk.git;a=com ... e2fac5bc2e

Officially, DCMTK 3.6.1 (and all versions before the above commit) did not support it but it seemed to work with some versions.

st80rules
Posts: 190
Joined: Tue, 2007-05-08, 17:45

Re: Access violation invoking chooseRepresentation

#5 Post by st80rules »

Oh great, thanks!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest