Message: The following issue has been closed.
--------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XERCESC-1175 Here is an overview of the issue: --------------------------------------------------------------------- Key: XERCESC-1175 Summary: unmapped memory exception during transcode Type: Bug Status: Closed Resolution: INCOMPLETE Project: Xerces-C++ Components: Utilities Versions: 2.4.0 Assignee: Reporter: Adam Heinz Created: Mon, 15 Mar 2004 3:23 PM Updated: Mon, 20 Sep 2004 1:08 PM Environment: Operating System: MacOS 9 Platform: Macintosh Description: The following crashes on the last line: // Initialize Xerces try { XMLPlatformUtils::Initialize(); } catch (const XMLException& exception) { // ... exception handling ... } // ... non-Xerces initialization ... // Create XML document. DOMImplementation* pImpl = DOMImplementationRegistry::getDOMImplementation(_X ("LS")); I replaced the last line to test my XStr class, but I get the same error doing a vanilla transcode: If I use a constant, however, I don't get the error: const XMLCh[] sxLS = { chLatin_L, chLatin_S, chNull }; DOMImplementation* pImpl = DOMImplementationRegistry::getDOMImplementation (sxLS); This is fine for some situations, but obviously, a program where everything is constant isn't very interesting! This same code that crashes on MacOS 9.2 works fine on Win2K. Stack trace: xercesc_2_4::XMLString::transcode(const char*) xercesc_2_4::MacOSLCPTranscoder::transcode(const char*) xercesc_2_4::MacOSLCPTranscoder::transcode(const char*, xercesc_2_4::MemoryManager*) The crash is on MacOSUnicodeConverter.cpp::1185, the ArrayJanitor<XMLCh> newResult( ... ) call. I've been following the Mac transcoding thread, and it seems that this error may go away with the deprecation of the UnicodeConverter in 2.5; I haven't tested this theory yet. --------------------------------------------------------------------- JIRA INFORMATION: 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]