Bug in IGESControl_Reader::PrintTransferInfo?

I believe I have found a bug in IGESControl_Reader::PrintTransferInfo.
The third line of the file has the code: thesession->MapReader().
thesession is a private handle to a XSControl_WorkSession object and
is declared in IGESControl_Reader.hxx. Unfortunately, it is never
initialized. As a result, MapReader is called on a null entity. On
the PC this seems to throw an exception every time. On my Solaris
system, it crashes with a segmentation fault.

I did notice that XSControl_Reader also has a private member called
thesession that gets initialized in its contructor. I have a feeling
the declaration of thesession in IGESControl_Reader.hxx is a bug.
If this line were removed, everything would most likely work fine.

Open CASCADE Support Team's picture

Dear Mr. Bachrach,

Thank you for contributing to Open CASCADE Technology!

We are pleased to inform you that you contribution has been registered as bug with reference number OCC6497 "Bug in IGESControl_Reader::PrintTransferInfo".

Your modification has been successfully tested for non regression and will appear in the following public version of Open CASCADE.

With best regards,
Open CASCADE Support Team