knoaman 2003/11/17 06:50:29 Modified: c/src/xercesc/util PlatformUtils.cpp Log: Fix for bug 23930 by Ronald Landheer-Cieslak. Revision Changes Path 1.12 +14 -11 xml-xerces/c/src/xercesc/util/PlatformUtils.cpp Index: PlatformUtils.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/PlatformUtils.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- PlatformUtils.cpp 27 Aug 2003 16:41:56 -0000 1.11 +++ PlatformUtils.cpp 17 Nov 2003 14:50:29 -0000 1.12 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.12 2003/11/17 14:50:29 knoaman + * Fix for bug 23930 by Ronald Landheer-Cieslak. + * * Revision 1.11 2003/08/27 16:41:56 jberry * Add new static global that always points to array-allocating memory manager * @@ -235,6 +238,17 @@ // if (gInitFlag == LONG_MAX) return; + + // + // Make sure we haven't already been initialized. Note that this is not + // thread safe and is not intended for that. Its more for those COM + // like processes that cannot keep up with whether they have initialized + // us yet or not. + // + gInitFlag++; + + if (gInitFlag > 1) + return; // Set pluggable memory manager if (!fgMemoryManager) @@ -249,17 +263,6 @@ fgMemoryManager = new MemoryManagerImpl(); } } - - // - // Make sure we haven't already been initialized. Note that this is not - // thread safe and is not intended for that. Its more for those COM - // like processes that cannot keep up with whether they have initialized - // us yet or not. - // - gInitFlag++; - - if (gInitFlag > 1) - return; /*** * Panic Handler:
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]