🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9374

Re: Thread and memory

#9374
From: Remy Lebeau (TeamB)
Date: Mon, 19 Jul 2004 16:58
14 lines
1371 bytes
"JD" <nospam@nospam.com> wrote in message
news:40fbf87b$1@newsgroups.borland.com...

> If you don't delete the thread when it's finished and allocate
> a new one - that's you're problem. And yes, that is a memory
> leak - a very big one at that.

However, there is no leak in this case since FreeOnTerminate is set to true.
The thread frees itself automatically when it finishes.  Now, if the thread
never finishes, that would be a problem...


Gambit
Technical Details
Message-ID: <40fbfd74$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40fb3d08@newsgroups.borland.com> <40fbf87b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d35c53850c011fac
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <40fb3d08@newsgroups.borland.com> <40fbf87b$1@newsgroups.borland.com>
Subject: Re: Thread and memory
Date: Mon, 19 Jul 2004 09:58:17 -0700
Lines: 16
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: 68.69.17.41
Message-ID: <40fbfd74$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090256244 68.69.17.41 (19 Jul 2004 09:57:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail