From: John S. <joh...@or...> - 2010-02-24 13:08:49
|
The AutoRelease object will call the release() method when it goes out of scope. As it happens, deleting a DOMLSParser object does the same thing as calling DOMLSParser::release() - this is not necessarily true for other objects. John baranidharan wrote: > Hi john, > My piece of code as follows > ----------------------------------------- > .... > AutoRelease<DOMLSParser> > parser(xqillaImplementation->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, > 0)); > .. > .. > delete parser; > > ------------------------------------------ > Whether i have include the 'delete parser;' in my code or > the 'AutoRelease' will take care the delete ? > please tell me. And where i can find the AutoRelease tutorial > > Regards, > Barani -- John Snelson, Oracle Corporation http://twitter.com/jpcs Berkeley DB XML: http://oracle.com/database/berkeley-db/xml XQilla: http://xqilla.sourceforge.net |