I have a TThread descendent that dosen't fire OnTerminate

I have a TThread descendent that dosen't fire OnTerminate

Post by Larry Matu » Sun, 24 Jul 2005 06:50:02


Hi,

I have a TThread descendent that dosen't fire the OnTerminate Event. I
don't see any reason it shouldn't. I have an almost identical one that does
fire the OnTerminate Event. What would cause a TThread to no fire the
OnTerminate Event?

-- Larry Maturo
 
 
 

I have a TThread descendent that dosen't fire OnTerminate

Post by Wayne Nidd » Sun, 24 Jul 2005 06:53:47


Either the Execute method is never ending or it is being destroyed before
that (or Execute is never called to start with).

--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.yqcomputer.com/
Bandwagons are like streetcars, there'll be another along in a few
minutes.

 
 
 

I have a TThread descendent that dosen't fire OnTerminate

Post by Larry Matu » Sun, 24 Jul 2005 07:35:46

Hi Wayne,

I have steped through Execute, so I know it gets called, and ends, it just
never calls OnTerminate.
I'm tempted to call it myself, at the end of Execute, but I have the nagging
feeling that something is
very wrong, or it would get called without my calling it.

-- Larry Maturo
 
 
 

I have a TThread descendent that dosen't fire OnTerminate

Post by Wayne Nidd » Sun, 24 Jul 2005 08:41:50


Then somehow the OnTerminate event must be getting disconnected. Is this
event being shared by any other instance of this thread object (possibly by
accident)?

--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.yqcomputer.com/
Working for yourself is great because you get to work half days, and
you can choose any twelve hours you want.
 
 
 

I have a TThread descendent that dosen't fire OnTerminate

Post by David Dea » Thu, 28 Jul 2005 05:26:23

In article <42e16a2a$ XXXX@XXXXX.COM >,



Could it be related to QC#7125?

< http://www.yqcomputer.com/ ;

--
-David