Thread Terminate
From: Mark Payton (marktpayton_at_nospam.btinternet.com)
Date: 10/30/03
- Next message: Sean Capstick: "Re: Mutiple Monitors and TDialog"
- Previous message: Serguei: "Re: Service install in XP"
- Next in thread: Brian Cook: "Re: Thread Terminate"
- Reply: Brian Cook: "Re: Thread Terminate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 19:35:37 -0000
Dear All,
I have a number of threads which contains a timer which performs a process
on the OnTimer event.
What happens is that when I close my application I get an AV.
I basically put this down to the fact that the process in my OnTimer event
within the Thread accesses some element on the form (which has been closed
down).
The Question is
Do I put something in the thread that checks if Application has been closed?
or
When I close the app, I set the Terminate property of the threads fired up
so they will terminate on their own?
if I pick the second option I then have to keep tabs on all the threads I
create.
What should I do?
Many thanks in advance.
Mark
- Next message: Sean Capstick: "Re: Mutiple Monitors and TDialog"
- Previous message: Serguei: "Re: Service install in XP"
- Next in thread: Brian Cook: "Re: Thread Terminate"
- Reply: Brian Cook: "Re: Thread Terminate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|