The following comment has been added to this issue:

     Author: Jesse Pelton
    Created: Tue, 1 Jun 2004 8:01 AM
       Body:
So gTranscoder is getting reset or overwritten at some point.  Try setting a 
breakpoint on the variable (use the "Data" tab on VS.Net's "New Breakpoint" dialog) to 
see when it gets changed.  I'd probably set a breakpoint in XMLString::initString, let 
gTranscoder get initialized, then set the data breakpoint and run until the breakpoint 
gets tripped.

This will probably slow execution to a crawl, but it should allow you to get a handle 
on the problem, whether it's caused by a reset (that is, a call to 
XMLString::termString) or an overwrite.

You might want to set a breakpoint on XMLString::termString() before trying this, 
however.  It'll run faster, and will tell you whether the global is getting reset 
prematurely.  This would presumably indicate that you've called 
XMLPlatformUtils::Terminate() without subsequently reinitializing.  If you're running 
multiple threads, you need to synchronize these operations.

For future reference, note that while there is undoubtedly a bug here, it may or may 
not be in Xerces.  This bug database is intended for Xerces bugs.  The mailing list is 
a better forum for discussing development problems whose cause is uncertain.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/XERCESC-1222?page=comments#action_35846

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1222

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1222
    Summary: Null Pointer Exception in XMLString::transcode(const char* const 
toTranscode)
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Xerces-C++
 Components: 
             Utilities
   Versions:
             2.5.0

   Assignee: 
   Reporter: Paul Brun

    Created: Tue, 1 Jun 2004 5:55 AM
    Updated: Tue, 1 Jun 2004 8:01 AM
Environment: Windows XP, Visual Studio.NET (The Xerces C++ library was re-built using 
this tool).

Description:
XStr classes that were given in in numerous examples for transcoding strings to their 
unicode form, I am constantly receiving a null pointer exception within the XMLString 
source code. The call stack points to line 597:

return gTranscoder->transcode(toTranscode);

and the gTranscoder pointer is null. From my understanding, this pointer should have 
been filled when calling the XMLPlatformUtils::Initialize method, right? Something is 
causing it to become NULL and I have yet to figure out what is causing this situation.

It is presently quasi-reproducible in the sense that it occurs and stops my 
application, however, it works for the first 10 calls or so to that function.


---------------------------------------------------------------------
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]

Reply via email to