🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.webservices.soap
Article #3

Re: Leak in HTTPRio? in TOMCAT? No more Internet handles can be allocated

#3
From: Remy Lebeau (TeamB)
Date: Fri, 05 Oct 2007 16:54
20 lines
1771 bytes
<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: <47066cc1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <c1fcg3tprri33t0o5fhc95k11c9j91mv4h@4ax.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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.webservices.soap,borland.public.delphi.webservices.soap,borland.public.cppbuilder.internet.socket
References: <c1fcg3tprri33t0o5fhc95k11c9j91mv4h@4ax.com>
Subject: Re: Leak in HTTPRio? in TOMCAT? No more Internet handles can be allocated 
Date: Fri, 5 Oct 2007 09:54:33 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.29.61
Message-ID: <47066cc1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1191603393 75.83.29.61 (5 Oct 2007 09:56:33 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail