See the FAQ:

   http://xml.apache.org/xerces-c/faq-parse.html#faq-26

You _must_ use the same run-time as Xerces.

Dave



                                                                                       
                                               
                      Alex Brown                                                       
                                               
                      <alexb@griffinbr         To:      
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>                 
                      own.co.uk>               cc:      (bcc: David N 
Bertoni/CAM/Lotus)                                              
                                               Subject: How to delete memory allocated 
by XMLString::transcode                        
                      01/24/2002 07:28                                                 
                                               
                      AM                                                               
                                               
                      Please respond                                                   
                                               
                      to xerces-c-dev                                                  
                                               
                                                                                       
                                               
                                                                                       
                                               




The docs say:

"NOTE: The returned buffer is dynamically allocated and is the
responsibility of the caller to delete it when not longer needed."

But what function should be used for deleting the buffer? There's no
guarantee (is there?) that the delete[] I might be using properly
corresponds to the new[] that Xerces has used. Shouldn't there be a static
method XMLString::freeBuffer to do this safely?

- Alex.


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