1

I want to use the x64 gdcm library in my c++ app and it works in debug builds, But when i make a build with release configuration then i have :

Access violation reading location 0x0000000000000008.

When calling getDataSet() function :

gdcm::File &file = reader.GetFile();
gdcm::DataSet dataset = file.GetDataSet();

Can anyone help me to i fix this problem?

Thanks

masoud khanlo
  • 189
  • 1
  • 14

1 Answers1

0

If everything is ok with your file object (and its reference), then the right way to call GetDataSet method seems to be:

const gdcm::DataSet &ds = file.GetDataSet();

So you get the reference to the internals and don't try to copy them; at least this is how it works in my code.

Trantor
  • 768
  • 1
  • 8
  • 27