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
//
---------------------------------------------------------------------------
// // 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; } |
- Re: Problem wih delete [] p in << operator Nathan Troxler
- Re: Problem wih delete [] p in << ope... David N Bertoni/CAM/Lotus