Article View: borland.public.cppbuilder.nativeapi
Article #5835Re: I'm leaking handles
From: Michel Leunen
Date: Sun, 26 Jun 2005 19:36
Date: Sun, 26 Jun 2005 19:36
31 lines
2059 bytes
2059 bytes
Arnie wrote: > Well actually I'm not, it's my service app. I can see this in > task manager. > > The app uses TDatabase and friends, TRegistry, raw TCP/IP, etc. > It wakes up every minute looking for work. It creates and > destroys the afore mentioned objects and looks clean, but the > handle count goes up on every pass. Is it a multithreaded app? I found that not freing thread handle was the first source of handle leak in my case. > > I'm looking for some kind of utility that will tell me what types > of handles the app is using. This would give me a clue as to > where to look harder. Does anyone know o such a utility? There is a tool from sysinternals.com that can display all handles used by a process or application. You may want to look at it: http://www.sysinternals.com/Utilities/Handle.html -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Technical Details
Message-ID:
<42bf03a0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42bed08b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,43fae4ca79eb3beb X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 26 Jun 2005 21:36:05 +0200 From: Michel Leunen <nospam@noreply.please> Organization: www.leunen.com User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: fr-be, en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: I'm leaking handles References: <42bed08b$1@newsgroups.borland.com> In-Reply-To: <42bed08b$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.242.169.57 Message-ID: <42bf03a0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119814560 81.242.169.57 (26 Jun 2005 12:36:00 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail