Sorry for posting a compiler specific problem to a general newsgroup. If
anyone knows a more appropriate group to post to: Please let me know.
I am attempting to build an application using a locally compiled version
of the Xerces XML SAX parser using version 5.0.of the SparcWorks C++
compiler under Solaris 2.5.1.
The program runs fine, if unexpectely slowly, when build with debug and
shows no errors under Purify. However when I build it with any
optimisation set, it core dumps.
The error I get from purify is Zero page write which occurs in the
destructor for the base class for an exception. It appears to be
attempting to destroy an object with a null 'this' pointer.
Has anyone experienced this sort of behavior before, and/or knows if the
sun optimiser does anything strange with exceptions, I would be very
interested to hear.
Thanks in advance for your help,