Skip to content
Snippets Groups Projects
Commit f110e940 authored by Neil Graham's avatar Neil Graham
Browse files

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
parent 3f1671bc
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,16 @@ ...@@ -56,6 +56,16 @@
/* /*
* $Log$ * $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 * Revision 1.3 2003/05/15 19:04:35 knoaman
* Partial implementation of the configurable memory manager. * Partial implementation of the configurable memory manager.
* *
...@@ -91,7 +101,7 @@ XERCES_CPP_NAMESPACE_BEGIN ...@@ -91,7 +101,7 @@ XERCES_CPP_NAMESPACE_BEGIN
* *
*/ */
class XMLUTIL_EXPORT PanicHandler : public XMemory class XMLUTIL_EXPORT PanicHandler
{ {
public: public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment