You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by pe...@ca.ibm.com on 2001/05/17 18:33:45 UTC
Re: memory leaks in DOMString and DOM_Document
1. printing a DOMString
The "<<" operator has been overloaded in the DOMPrint example
and UMR is encountered in the following line:
char *p = s.transcode();
--> delete[] p;
Regards,
Peiyong Zhang
____________________________________________
XML Parsers Development
IBM Toronto Laboratory email: peiyongz@ca.ibm.com
Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088
Pallavi Mahajan <pa...@baypackets.com>@baypackets.com on
05/17/2001 06:57:07 PM
Please respond to xerces-c-dev@xml.apache.org
Sent by: pallavi@baypackets.com
To: "xerces-c-dev@xml.apache.org" <xe...@xml.apache.org>
cc:
Subject: memory leaks in DOMString and DOM_Document
Hi,
Testing for memory leaks, UMR (Uninitialized Memory Read) was encountered
for:
1. printing a DOMString
The "<<" operator has been overloaded in the DOMPrint example
and UMR is encountered in the following line:
char *p = s.transcode();
2. creating a Document
UMR is encountered in the following line:
DOM_Document doc = impl.createDocument(0, rootElementName,
DOM_DocumentType());
How do we solve the above problems?
Regards,
Pallavi.
--
..........................................................
dOUbt Is nOt A plEAsAnt cOndItIOn, bUt cErtAInty Is AbsUrd
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: memory leaks in DOMString and DOM_Document
Posted by Pallavi Mahajan <pa...@baypackets.com>.
off course i do delete the array.
my code is:
char *p = s.transcode();
cout << p;
delete [] p;
peiyongz@ca.ibm.com wrote:
> 1. printing a DOMString
> The "<<" operator has been overloaded in the DOMPrint example
> and UMR is encountered in the following line:
> char *p = s.transcode();
> --> delete[] p;
>
> Regards,
>
> Peiyong Zhang
> ____________________________________________
> XML Parsers Development
> IBM Toronto Laboratory email: peiyongz@ca.ibm.com
> Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088
>
> Pallavi Mahajan <pa...@baypackets.com>@baypackets.com on
> 05/17/2001 06:57:07 PM
>
> Please respond to xerces-c-dev@xml.apache.org
>
> Sent by: pallavi@baypackets.com
>
> To: "xerces-c-dev@xml.apache.org" <xe...@xml.apache.org>
> cc:
> Subject: memory leaks in DOMString and DOM_Document
>
> Hi,
>
> Testing for memory leaks, UMR (Uninitialized Memory Read) was encountered
> for:
>
> 1. printing a DOMString
> The "<<" operator has been overloaded in the DOMPrint example
> and UMR is encountered in the following line:
> char *p = s.transcode();
>
> 2. creating a Document
> UMR is encountered in the following line:
> DOM_Document doc = impl.createDocument(0, rootElementName,
> DOM_DocumentType());
>
> How do we solve the above problems?
>
> Regards,
> Pallavi.
>
> --
> ..........................................................
>
> dOUbt Is nOt A plEAsAnt cOndItIOn, bUt cErtAInty Is AbsUrd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
--
..........................................................
dOUbt Is nOt A plEAsAnt cOndItIOn, bUt cErtAInty Is AbsUrd