🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Terminating a TThread

#13754
From: Remy Lebeau (TeamB)
Date: Thu, 11 Sep 2003 20:13
33 lines
2186 bytes
"FarmerJo" <dsjinfo@aeons.plus.com> wrote in message
news:3f60d217@newsgroups.borland.com...

> I did wonder if you were still around on the newsgroups!

Still?  I never left, and I still post pretty heavily every single day.

> The two lines of code never seem to execute.

Are you ever sending messages to the thread to begin with?  Asside from
WM_USER+1, are you using any other custom messages, or hosting windows that
use messages?  What exactly does your thread do?  Unless your thread is
actually using windowed controls or custom messages, there's no reason to
run a message queue to begin with.

> If I put a breakpoint on either line it never breaks execution. When
> do the two lines get executed?

Given the code you and I both posted earlier, it would be whenever the
thread receives any message other than WM_USER+1 while the Terminated
property is false.  If you are never reaching that code, then either
Terminated is true or GetMessage() is never receiving any messages other
than WM_USER+1.


Gambit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
Technical Details
Message-ID: <3f60d728$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f60baf0@newsgroups.borland.com> <3f60bc95$1@newsgroups.borland.com> <3f60d217@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,3be809e348405e50
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-11 13:21:33 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f60baf0@newsgroups.borland.com> <3f60bc95$1@newsgroups.borland.com> <3f60d217@newsgroups.borland.com>
Subject: Re: Terminating a TThread
Date: Thu, 11 Sep 2003 13:13:05 -0700
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f60d728$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063311144 207.175.226.26 (11 Sep 2003 13:12:24 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail