🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3088

Re: What's wrong with this?

#3088
From: dzeidzei
Date: Thu, 17 Nov 2005 04:49
11 lines
1386 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:

>> TIdHTTP *IdHTTP = new TIdHTTP(NULL);
>
>You are not protecting that instantiation from unhandled exceptions.  If an
>exception is thrown, you will have a lot of memory leaks in your code.

How to protect It from unhandled exeptions? I quess it's done automatically when i put TIdHTTP component to my form, but can't find out what is the proper way to instantiate it 'manually'.

- dzeidzei
Technical Details
Message-ID: <437c19ea$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <437b2354$1@newsgroups.borland.com> <437ba8a7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4165e9ea369c7fad
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "dzeidzei" <dzeidzei@suolakaivos.com>
Sender: "dzeidzei" <dzeidzei@suolakaivos.com>
Reply-To: "dzeidzei" <dzeidzei@suolakaivos.com>
Subject: Re: What's wrong with this?
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 192.107.203.51     
References: <437b2354$1@newsgroups.borland.com> <437ba8a7$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <437c19ea$1@newsgroups.borland.com>
Date: 16 Nov 2005 21:49:30 -0700
X-Trace: newsgroups.borland.com 1132206570 207.105.83.66 (16 Nov 2005 21:49:30 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail