[ 
http://issues.apache.org/jira/browse/XERCESC-1194?page=comments#action_58626 ]
     
Rollin Weeks commented on XERCESC-1194:
---------------------------------------

I'm getting compile errors on RedHat 7.3 with GCC 3.4.1 trying to compile 
OpenPIX with XERCES.  The DocumentParser.cpp function (in VXI) calls 
MemBufInputSource for validation of a local document in a context where it 
needs to create a copy of the derived object.  The compiler says this is 
illegal, because the base class (inputSource) copy and assignment constructors 
are hidden.  None of the c++ compiler flags seem to make any difference for 
this error.

Rollin Weeks

> MemBufInputSource constructor produces a core on linux but not on solaris 
> (was:Bugzilla#28385)
> ----------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1194
>          URL: http://issues.apache.org/jira/browse/XERCESC-1194
>      Project: Xerces-C++
>         Type: Bug
>   Components: DOM
>     Versions: 2.4.0
>  Environment: any linux; not on solaris
>     Reporter: Shane Curcuru
>     Priority: Minor

>
> (Manually transferred from Bugzilla#28385  Please address questions to 
> original reporter [EMAIL PROTECTED])
> There is a possible bug in Xerces-C 2.4.0 on linux platforms. This doesn't 
> occur with solaris.
> The next small program code generates a segmentation fault:
> #include <xercesc/util/PlatformUtils.hpp>
> #include <xercesc/util/XMLString.hpp>
> #include <xercesc/dom/DOM.hpp>
> #include <xercesc/framework/MemBufInputSource.hpp>
> static const char *xml_buff =
> "<?xml version='1.0' encoding='ISO-8859-1' ?><root></root>";
> using namespace xercesc;
> int main( int argc, char *argv[] )
> {
>    XMLPlatformUtils::Initialize( "es_ES" );
>    MemBufInputSource
>    memDoc( (XMLByte *) xml_buff, strlen( xml_buff ), "tmp.xml", false );
>    XMLPlatformUtils::Terminate();
>    return 0;
> }
> If I alloc the MemBufInputSource with new, there is no problem.
> Thanks and best regards

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to