Article View: borland.public.cppbuilder.webservices.soap
Article #4Re: Leak in HTTPRio? in TOMCAT? No more Internet handles can be allocated
From: m.durliNOSPAM
Date: Mon, 08 Oct 2007 08:53
Date: Mon, 08 Oct 2007 08:53
37 lines
2043 bytes
2043 bytes
Hello,
if I delete the iRio, I receive an AccessViolation error.
I changed the 'this' to 'NULL' anyway, but I still don't know if
that's was the problem because it normally occurs after some days.
THTTPRIO* iRio = new THTTPRIO(NULL);
//...
delete iRio;
Do you have any idea why I receive this AccessViolation?
Thanks,
Mattia
>
><m.durliNOSPAM@bo.nettuno.it> wrote in message
>news:c1fcg3tprri33t0o5fhc95k11c9j91mv4h@4ax.com...
>
>> THTTPRIO* iRio = new THTTPRIO(this);
>
>Are you ever deleting that object after sending a request?
>
>Assuming 'this' is the pointer to your TForm1 instance, I do not suggest
>using the TForm as the Owner for the object. TIdTCPServer is a
>multi-threaded component, and the TForm's Components array is not
>thread-safe. Use a NULL Owner and 'delete' the object when you are done
>with it, ie:
>
> THTTPRIO* iRio = new THTTPRIO(NULL);
> //...
> delete iRio;
>
>
>Gambit
>
Technical Details
Message-ID:
<80sjg399o3gcaoplp4b16659c10s8fs32n@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<c1fcg3tprri33t0o5fhc95k11c9j91mv4h@4ax.com> <47066cc1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,bb6006ec953edc17 X-Google-Thread: 114096,bb6006ec953edc17 X-Google-Thread: 11508e,bb6006ec953edc17 X-Google-Attributes: gid11096a,gid114096,gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: m.durliNOSPAM@bo.nettuno.it Newsgroups: borland.public.cppbuilder.webservices.soap,borland.public.delphi.webservices.soap,borland.public.cppbuilder.internet.socket Subject: Re: Leak in HTTPRio? in TOMCAT? No more Internet handles can be allocated Date: Mon, 08 Oct 2007 10:53:31 +0200 Message-ID: <80sjg399o3gcaoplp4b16659c10s8fs32n@4ax.com> References: <c1fcg3tprri33t0o5fhc95k11c9j91mv4h@4ax.com> <47066cc1$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.9/32.560 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.140.21.234 X-Trace: newsgroups.borland.com 1191833641 213.140.21.234 (8 Oct 2007 01:54:01 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail