Make sure you are using the multithreaded DLL run-time libraries, rather
than the static libraries.

Dave



                                                                                
                              
                    "Nathan                                                     
                              
                    Troxler"             To:     <[EMAIL PROTECTED]>            
                      
                    <[EMAIL PROTECTED]        cc:     (bcc: David N 
Bertoni/CAM/Lotus)                             
                    c.ch>                Subject:     Problem wih delete [] p 
in << operator                  
                                                                                
                              
                    04/01/2000                                                  
                              
                    12:50 PM                                                    
                              
                    Please                                                      
                              
                    respond to                                                  
                              
                    xerces-dev                                                  
                              
                                                                                
                              
                                                                                
                              



Hello Apache Support.

I successfully incorporated the Apache XML-Reader/Writer
into my Win32 MFC VC++6.0 App.

I borrowed a lot from your sample codes: For example
to write to file, I used the DOMPrint.cpp example.

But the "delete [] p " gives an "Access violation.
(First time called).
I cannot debug very well, so I do not see the problem?
Have you any ideas.
Until now, I just outcommented the line: Then the
code works very fine.

Thanks a lot for your free code - I can learn
a lot by reading through it, though I do not
understand all :-).

I turned to your Parser, because I had problems
with special characters like �,�, �, ...
with another free Parser.
Your code (encoding) works perfect for me.

This is my first contact with opensource, so
please forgive me if I do not know the
rules for writing a feedback.


Best regards

Nathan Troxler
[EMAIL PROTECTED]




//
---------------------------------------------------------------------------
//
//  string << DOMString    Stream out a DOM string.
//                          Doing this requires that we first transcode
//                          to char * form in the default code page
//                          for the system
//
//
---------------------------------------------------------------------------
ostream& operator<<(ostream& target, const DOMString& s)
{
    char *p = s.transcode();
    target << p;
    // delete [] p;
    return target;
}



Reply via email to