🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1562

Re: deleting a TXMLDocument

#1562
From: Hans Galema
Date: Fri, 17 Sep 2004 07:18
20 lines
1642 bytes
Fabi�n wrote:
> yes, the error is at runtime...  the classic acces violation at address
> 000000000....  error reading....

You only delete XMLDocument in case there is a catch.
You are executing this code in ServerSocket1ClientRead().

In case there is no catch what does delete XMLDocument; do ?

What has this AV to do with ServerSocket1ClientRead() and with a
failing try ?

What I like to know if you just have the two statements

	XMLDocument = new TXMLDocument("");
	delete XMLDocument;

in for instance an TButton's OnClick handler, if you then get the same error.

Hans.
Technical Details
Message-ID: <414a8efe@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4148c0b5@newsgroups.borland.com> <41499f8e$1@newsgroups.borland.com> <414a2597$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,857cefac094b3c55
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII
Date: Fri, 17 Sep 2004 09:18:15 +0200
From: Hans Galema <dontusethis@dontusethis.nl>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: deleting a TXMLDocument
References: <4148c0b5@newsgroups.borland.com> <41499f8e$1@newsgroups.borland.com> <414a2597$1@newsgroups.borland.com>
In-Reply-To: <414a2597$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <414a8efe@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095405310 129.125.201.248 (17 Sep 2004 00:15:10 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail