Please read the FAQ!  You're mixing runtimes:

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

Dave



                                                                                       
                       
                      "Florian                                                         
                       
                      Brugger"                 To:      <[EMAIL PROTECTED]>  
                       
                      <f.brugger@telew         cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                  
                      eb.at>                   Subject: problem deleting memory 
allocated by transcode        
                                                                                       
                       
                      03/05/2002 01:18                                                 
                       
                      PM                                                               
                       
                      Please respond                                                   
                       
                      to xerces-c-dev                                                  
                       
                                                                                       
                       
                                                                                       
                       



Deleting memory allocated by transcode does not seem to work for me:

DOMString string ("test");
char *ptr = string.transcode ();
delete [] ptr;

delete [] ptr causes a crash. Note that ptr does actually point to a char
array containing "test".

What am I doing wrong?

Thank you for your help,

Florian Brugger





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