From f110e940854ff4906eac10d553ba8b7c391506cc Mon Sep 17 00:00:00 2001 From: Neil Graham <neilg@apache.org> Date: Thu, 22 May 2003 18:15:16 +0000 Subject: [PATCH] The PanicHandler interface should not inherit from XMemory. The reason for this is that the default implementation does not allocate memory dynamically and if such an inheritance relation existed, a user would have to be very careful about installing a memory handler on their own PanicHandler before handing it to the XMLPlatformUtils::Initialize() method, since otherwise the (uninitialized) XMLPlatformUtils::fgMemoryManager would be used upon construction of their PanicHandler implementation. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175028 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/util/PanicHandler.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/xercesc/util/PanicHandler.hpp b/src/xercesc/util/PanicHandler.hpp index accd54612..f61753ddf 100644 --- a/src/xercesc/util/PanicHandler.hpp +++ b/src/xercesc/util/PanicHandler.hpp @@ -56,6 +56,16 @@ /* * $Log$ + * Revision 1.4 2003/05/22 18:15:16 neilg + * The PanicHandler interface should not inherit from XMemory. + * The reason for this is that the default implementation does not + * allocate memory dynamically and if such an inheritance relation existed, + * a user would have to be very careful about installing a memory + * handler on their own PanicHandler before handing it to the + * XMLPlatformUtils::Initialize() method, since otherwise + * the (uninitialized) XMLPlatformUtils::fgMemoryManager would be used + * upon construction of their PanicHandler implementation. + * * Revision 1.3 2003/05/15 19:04:35 knoaman * Partial implementation of the configurable memory manager. * @@ -91,7 +101,7 @@ XERCES_CPP_NAMESPACE_BEGIN * */ -class XMLUTIL_EXPORT PanicHandler : public XMemory +class XMLUTIL_EXPORT PanicHandler { public: -- GitLab