Threads & TSimpleEvent

Giganews Newsgroups
Subject:Threads & TSimpleEvent
Posted by: Roy Lambert (roy.lambe…@skynet.co.uk)
Date:Sun, 28 Feb 2010

Are there any examples of using TSimpleEvent and threads?

What I want to achieve is a thread started when the app starts and to which I occasionally feed sql statements that do not require or result in user interaction (eg DELETE FROM DayBook WHERE _Date < CURRENT_DATE) which it will then execute after which it will have a nap unless there is more work.

There have been a lot of comments about the right way to go is TSimpleEvent but I can find no examples.

Roy Lambert

Replies