Hi all,

I am trying to use DOMParser.parse with a LocalFileInputSource.  I am
using xerces 1.5 on Win2000.  Everything works fine, but I purify
reports a memory leak in DocumentImpl::getOwnerDocument.  If I use a
MemInputSource I don't get the leak.  The way I call this is the
following:

xClass::parse(const string &xmlfile)
{
    DOMString dstr(xmlfile.cstr());
    LocalInputFileSource source(dstr.rawBuffer());

    mParser.parse(source);
    ...
}

Is there a better way to do this?  do i need to free something here.  I
know transcode new's does the rawBuffer
new something as well?

    Thanks

            Glenn

--

Glenn MacGregor

Director of Services
Oracom, Inc.
http://www.oracom.com

Tel. +1 978.557.5710 Ext. 302
Fax  +1 978.557.5716




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to