[Dcmlib] [Fwd: Bug found in GDCM (here is the solution)]

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Jan 30 20:15:21 CET 2006


forwarding to dcmlib. I don't read personal emails :)

-------- Original Message --------
Subject: Bug found in GDCM (here is the solution)
Date: Thu, 26 Jan 2006 13:46:16 -0500
From: Csaba Csoma <>

Hi,

I just downloaded GDCM and after building it crashed with General
Protection Fault. (Windows XP SP2, Visual Studio .NET 2005, fresh
checkout from CVS)

Here is what happened:

  In gdcmGlobal.cxx line 65:
   Global Glob;
  starts the "Global" object's constructor.

  Which in turn (line 79) initializes Dicts:
   Dicts     = DictSet::New();

  Dicts starts parsing the gdcm.dic file and for the last element
  (I don't know why) it says "this is duplicated"
  (in gdcmdict.cxx line 145)

  This generates the following message:
   gdcmErrorMacro( "Already present:" << key );

  which in turn goes to "Debug::SendToOutput" in
  gdcmDebug.cxx line 140

  and CommandManager is invoked, which is a singleton class initialized
  in the beginning gdcmcommandmanager.cxx line 25 as a global variable.

  But since the "Global Glob;" was the first variable, CommandManager was
  not yet created and this will result in a General Protection Fault.


After commenting out the error message (gdcmErrorMacro) everything
is working fine.


And since I'm writing, there's one more thing: having to bring all
the "Dicts" directory with 30 files is not to easy. An SQL lite
database would be nicer. Even compiling into the executable this files
would be a great help.

Thank you,
  Csaba



Csaba Csoma
Systems Engineer
------------------------
Johns Hopkins University
3400  North Charles Str.
B26 New Engineering Bldg
Baltimore, MD 21218-2682
Phone: (410) 516-4991
mailto:csoma at cs.jhu.edu





More information about the Dcmlib mailing list