|
The
transcode method returns memory which the caller is responsible for. So you have
at least two memory leaks in your code.
You
have to do:
char *
p = x.transcode();
// do
stuff with p
delete
[] p;
Note,
the above will work only ifyou have the same allocator as the compiled xerces
library you are wokring with.
Otherwise I recommend using XMLString::transocde. One of the overloads
takes a buffer which you allocate and are hence responsible
for.
Samar
-----Original Message----- From: renganathan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 23:23 To: [EMAIL PROTECTED] Subject: Is this another solution to transcoded memory problem...?
|
- Is this another solution to transcoded memory problem.... renganathan
- re: Is this another solution to transcoded memory... Samar Abbas Lotia
- re: Is this another solution to transcoded memory... Michael D. Crawford
