BTW:
I've noticed some stability problems with xerces-c 1.6 on Solaris 8 with the
same compiler, but this is also true when we were using g++ 2.95.3 for both.
I believe I may have found our problems: We had been using the following
construct to create new documents:
DOM_Document newDocument = DOM_Document::createDocument();
DOM_Node newNode = newDocument.createElement("newchildUsedAsRoot");
newDocument.appendChild(newNode);
whereas we should have been using:
DOM_DOMImplementation impl;
DOM_Document newDocument = impl.createDocument(0, "root", DOM_DocType());
DOM_Element rootElement = newDocument.getElement();
DOM_Element newElement = newDocument.createElement("newchild");
rootElement.appendChild(newElement);
Using an XMLParser on the previous construct led to very nasty
multiprocessor Sparc Solaris crashes, as well as crashes in
DOM_Node::clone(x, true). Prelimary results indicate that the former
construct is VERY erroneous, and that the second seems MP safe. Now that
I've learned about the second construct, it seems silly to have ever written
the first. But we've been using that successfully for quite some time on
NT, and it seems just fine on single processor Sparc Solaris boxen.
Mark
>From: "Samar Lotia" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Xerces C++ and Forte C++ compiler
>Date: Thu, 31 Jan 2002 14:44:06 -0800
>
>We have been using xerces for some time with the Forte 6 Update 1 compiler
>(plus a few patches) on Solaris 8.
>
>No noticeable problems so far, but then again, we only use a few small
>parts
>of xerces. The only piece we have used so far is the DOM parser. We parse
>our documents into memory and then immediately copy the document into our
>own structures. For our purposes, xerces has been fairly stable.
>
>Samar Lotia
>
>-----Original Message-----
>From: Woollett, Richard W [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 31, 2002 9:58 AM
>To: '[EMAIL PROTECTED]'
>Subject: Xerces C++ and Forte C++ compiler
>
>
>Hi Guys,
>
> I wonder if you can give me some advice regarding using the
>Xerces C++ XML library on Solaris. I have been experimenting with the
>Xerces
>library binary distribution and the Forte C++ compiler (Version 6 Update 2)
>on Solaris (SunOS 5.7). I've noticed that the binary library works with the
>compiler when the compatibility flag (-compat) is set to 4 only. I'm
>interested in using the library with the compiler in standard mode (i.e.
>compat=5, ANSI/ISO version). To this end I downloaded the Xerces source
>code
>and attempted to build the library with the compiler running in standard
>mode.
>
> The library compiled and I've run a few of the example programs
>successfully, but I wonder how reliable the binary code is. I've looked at
>Sun's C++ Migration guide and I know there have been a few changes, most
>noticeably in the use of the "new" operator.
>
>Have you considered the changes between C++ 4.x and C++ 5.x and how they
>might affect Xerces C++? If so could you kindly let me know about your
>conclusions? Are there any plans for a C++ 5.x compatible library?
>
>I'd be very grateful for any advice you can provide.
>
>Many thanks,
>
> Richard Woollett
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]