"Tinny Ng" <[EMAIL PROTECTED]> writes:
> If it works for most other IDOM methods, except getElementsByTagName(),
> then there may be a bug in this function ....
>
> Can you post your modified sample program for further investigation?
Hey Tinny,
Here's some more info. The following patch which just uses a static
XMLCh array also segfaults.
jas.
BTW:
Xerces-C compiled with -t native
~ $ uname -a
Linux amadeus 2.4.6-pre5 #2 Thu Jun 28 21:29:04 MDT 2001 ppc unknown
~ $ gcc -v
Reading specs from /usr/lib/gcc-lib/powerpc-linux/2.95.4/specs
gcc version 2.95.4 20010319 (Debian prerelease)
Index: IDOMCount.cpp
===================================================================
RCS file: /home/cvspublic/xml-xerces/c/samples/IDOMCount/IDOMCount.cpp,v
retrieving revision 1.3
diff -b -B -u -r1.3 IDOMCount.cpp
--- IDOMCount.cpp 2001/05/28 21:25:01 1.3
+++ IDOMCount.cpp 2001/07/03 20:41:11
@@ -67,6 +67,7 @@
#include <parsers/IDOMParser.hpp>
#include <idom/IDOM_DOMException.hpp>
#include <idom/IDOM_Document.hpp>
+#include <idom/IDOM_DOMImplementation.hpp>
#include "IDOMCount.hpp"
#include <string.h>
#include <stdlib.h>
@@ -218,6 +219,14 @@
parser.setValidationScheme(valScheme);
parser.setDoNamespaces(doNamespaces);
parser.setDoSchema(doSchema);
+
+ static const XMLCh static_foo[] =
+ {
+ chLatin_f, chLatin_o, chLatin_o
+ };
+
+ IDOM_DOMImplementation *impl = IDOM_DOMImplementation::getImplementation();
+ impl->createDocumentType(static_foo, static_foo, static_foo);
// And create our error handler and install it
DOMCountErrorHandler errorHandler;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]