Read the FAQ and/or the documentation.  In versions of Xerces prior to
1.5.2, you cannot call XMLPlatformUtils::Terminate() more than once per
process, and you cannot call XMLPlatforms::Initialize() after you've called
Terminate().  It's also extremely inefficient to do so.

Dave



                                                                                       
   
                    "Zhang,                                                            
   
                    Jiang(Jason)(        To:     "'[EMAIL PROTECTED]'"       
   
                    SD-EX)"              <[EMAIL PROTECTED]>                 
   
                    <[EMAIL PROTECTED]        cc:     (bcc: David N Bertoni/CAM/Lotus)      
   
                    m>                   Subject:     Problem with new SAXParser again 
   
                                                                                       
   
                    11/02/2001                                                         
   
                    12:58 PM                                                           
   
                    Please                                                             
   
                    respond to                                                         
   
                    xerces-c-dev                                                       
   
                                                                                       
   
                                                                                       
   



Hi, everyone,

I have a problem in creating a SAXParser object in the same process. For
example,

           SAXParser *pParser;
           XMLPlatformUtils::Initialize();
           ...
           pParser = new SAXParser; // first time succeeded
           ...
           delete pParser;
           XMLPlatformUtils::Terminate();
           ...
           XMLPlatformUtils::Initialize();
           ...
           pParser = new SAXParser; // second time failed
           ...
           delete pParser;
           XMLPlatformUtils::Terminate();

The first time creating doesn't have any problem. But the second time, it
always failed. Does anybody know the reason?

Thanks!

Jason



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

Reply via email to