knoaman 2004/02/13 12:42:54
Modified: c/doc faq-parse.xml
Log:
Add a faq regarding the two versions of transcode (one with a mem mgr and one
without)
Revision Changes Path
1.61 +18 -0 xml-xerces/c/doc/faq-parse.xml
Index: faq-parse.xml
===================================================================
RCS file: /home/cvs/xml-xerces/c/doc/faq-parse.xml,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- faq-parse.xml 12 Feb 2004 19:13:47 -0000 1.60
+++ faq-parse.xml 13 Feb 2004 20:42:54 -0000 1.61
@@ -897,5 +897,23 @@
</a>
</faq>
+
+ <faq title="Why do we have two versions of XMLString::transcode (one with memory
manager and one without)?">
+
+ <q>Why do we have two versions of XMLString::transcode (one with memory manager
and one without)?</q>
+
+ <a>
+
+ <p>With the introdcution of the configurable memory manager, we didn't want
to break users by
+ changing the signature of the method. Also, we did not want to provide a
default memory
+ manager as it would introduce a side effect with users experiencing some
strange core dumps.
+ The latter will occur when the scope of the string allocated is beyond
that of
+ XMLPlatformUtils::Terminate (i.e. a string is allocated using the default
memory manager
+ which is deleted when XMLPlatformUtils::Terminate is called, but the
allocated string is
+ deleted later). We plan to deprecate the transcode method with no
parameters in later releases.
+ </p>
+
+ </a>
+ </faq>
</faqs>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]