🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages Started by Adam Griffin Fri, 24 Sep 2004 19:36
XMLDocument
#1574
Author: Adam Griffin
Date: Fri, 24 Sep 2004 19:36
9 lines
1012 bytes
Sorry I didn't mention the data types.
  _di_IXMLDocument XMLDoc = NewXMLDocument();
  _di_IXMLNode Part;

Do I need to perform the following:
  if (Part) delete Part;
  if (XMLDoc) delete XMLDoc;

Thanks in advance.
Re: XMLDocument
#1575
Author: Remy Lebeau (TeamB)
Date: Fri, 24 Sep 2004 19:47
16 lines
1334 bytes
"Adam Griffin" <adam.griffin@itron.com> wrote in message
news:41547804$1@newsgroups.borland.com...

>   _di_IXMLDocument XMLDoc = NewXMLDocument();
>   _di_IXMLNode Part;
>
> Do I need to perform the following:
>   if (Part) delete Part;
>   if (XMLDoc) delete XMLDoc;

No on both.  They are both using wrapper classes that will automatically
free them accordingly when the wrappers themselves go out of scope.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads