DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4467>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4467 Accss violations if calling XMLPlatformUtils::Initialize() more than once. Summary: Accss violations if calling XMLPlatformUtils::Initialize() more than once. Product: Xerces-C++ Version: 1.5.2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Utilities AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We've found that if we call XMLPlatformUtils::Initialize() more than once in a program we get access violations when we try to make useful calls after the second initialization. The error was traced to a pointer that had been deleted but not NULLed and consequently written to, causing the violation. We fixed it by editing the XMLDeleteFor class so that fToDelete was of type T** instead of a T*, and then modified the cpp file so it was like this: template <class T> XMLDeleterFor<T>::XMLDeleterFor(T** const toDelete) { fToDelete = toDelete; } template <class T> XMLDeleterFor<T>::~XMLDeleterFor() { delete *fToDelete; *fToDelete = 0; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
