[Gdcm-hackers] [ gdcm-Bugs-3538586 ] Crash with gdcm::Reader on a jpeg and try to Read twic
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: SourceForge.net <no...@so...> - 2012-06-28 07:22:00
|
Bugs item #3538586, was opened at 2012-06-28 00:22 Message generated for change (Tracker Item Submitted) made by pleduff You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=739587&aid=3538586&group_id=137895 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General (default) Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Pierre Le Duff (pleduff) Assigned to: Mathieu Malaterre (malat) Summary: Crash with gdcm::Reader on a jpeg and try to Read twic Initial Comment: My problem is if i try to read for instance a jpeg file with a gdcm::Reader(). if i try this code : gdcm::Reader reader ; reader.SetFileName( "c:\\toto.jpg" ); reader.Read(); readre.Read(); the program will crash ( not in gdcm v2.0.15 ) I identify the problem : in gdcm v2.0.15 we close and set the Stream to NULL : Ifstream->close(); delete Ifstream; Ifstream = NULL; Stream = NULL; in gdcmv2.2.0 we do not set stream to NULL but we clear it so when we try a second time to read it ( in preamble it crashes ). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=739587&aid=3538586&group_id=137895 |