Search found 8 matches

by Clement
Wed, 2014-07-16, 10:59
Forum: DCMTK - General
Topic: DcmSCP: addPresentationContext resulting in a Segfault
Replies: 16
Views: 20048

Re: DcmSCP: addPresentationContext resulting in a Segfault

Alright thanks for your time Jan, if I find anything I'll let you know :)
by Clement
Wed, 2014-07-16, 09:40
Forum: DCMTK - General
Topic: DcmSCP: addPresentationContext resulting in a Segfault
Replies: 16
Views: 20048

Re: DcmSCP: addPresentationContext resulting in a Segfault

EDIT: Maybe you compiled your application in debug mode but DCMTK in release mode? That should of course not emit a segfault, but maybe it does. I tried compiling my application in release and debug mode with a release and debug compiled DCMTK and it only seems to crash when using the debug version...
by Clement
Wed, 2014-07-16, 09:06
Forum: DCMTK - General
Topic: DcmSCP: addPresentationContext resulting in a Segfault
Replies: 16
Views: 20048

Re: DcmSCP: addPresentationContext resulting in a Segfault

Hi Jan,

I'm on Ubuntu 14.04 and I didn't compile gcc or clang myself.
Actually, it appears that I only get this segfault in Debug mode... Could you try compiling my code in Debug mode ?

Thanks a lot.
by Clement
Tue, 2014-07-15, 10:45
Forum: DCMTK - General
Topic: DcmSCP: addPresentationContext resulting in a Segfault
Replies: 16
Views: 20048

Re: DcmSCP: addPresentationContext resulting in a Segfault

Ok so I've tried on OSX and Windows and it works well, but on Linux with gcc and Clang I keep getting the same result... :?
by Clement
Tue, 2014-07-15, 07:46
Forum: DCMTK - General
Topic: DcmSCP: addPresentationContext resulting in a Segfault
Replies: 16
Views: 20048

Re: DcmSCP: addPresentationContext resulting in a Segfault

Yes you are right about gcc. :)

I have tried my code on a Windows plateform (I'm on linux) and it seems to work well. I'll try on a different linux computer and let you know.
by Clement
Fri, 2014-07-11, 15:39
Forum: DCMTK - General
Topic: DcmSCP: addPresentationContext resulting in a Segfault
Replies: 16
Views: 20048

Re: DcmSCP: addPresentationContext resulting in a Segfault

Thanks for your time Jan. I'm using gcc 4.8.2 and if I try to compile DCMTK without the -DDCMTK_CXX11_FLAGS=-std=c++11 setting, the compilation fails and gives me that error : error: #error DCMTK was configured to use the C++11 STL, but your compiler is not configured for building with C++11 feature...
by Clement
Fri, 2014-07-11, 13:17
Forum: DCMTK - General
Topic: DcmSCP: addPresentationContext resulting in a Segfault
Replies: 16
Views: 20048

Re: DcmSCP: addPresentationContext resulting in a Segfault

Thanks for your link, I didn't know about C++11 activation in DCMTK :D So I have compiled DCMTK 3.6.1 (20140617) using CMake and those settings : cmake ... -DDCMTK_USE_CXX11_STL:BOOL=ON -DDCMTK_CXX11_FLAGS=-std=c++11 I have then compiled my code using gcc and the "-std=c++11" configuration...
by Clement
Thu, 2014-07-10, 09:12
Forum: DCMTK - General
Topic: DcmSCP: addPresentationContext resulting in a Segfault
Replies: 16
Views: 20048

DcmSCP: addPresentationContext resulting in a Segfault

Hi guys, I'm currently working on an application that uses DcmSCU and DcmSCP classes to retrieve DICOM files from a PACS. Everything worked well but we have recently enabled C++11 and since then, I have got a segmentation fault whenever I add a presentation context to the DcmSCP class. This is a sma...