2009/1/15 frano wrote > > I have tried using maxchar values of up to 100 and I still get a > segmentation fault...... > > If it's any help here is what the data (the board_id) is: > > As viewed in a file in Hex: 0100F120 > As displayed on the screen after being read from the file: 552665089 (this > is the result of doing a cout of the data).... > > Fran >
Did you call XMLPlatformUtils::Initialize() before this code and not call a matching XMLPlatformUtils::Terminate? Is "binToText" the only function causing a segmentation fault? (i.e. can you call at the same point in the code another Xerces function without problems?) If yes, perhaps you could show us the exact code you are working with - I don't see the memory allocation for the "units_data" structure and I am fairly sure there is no "unsigend char" type...