< XXXX@XXXXX.COM > schreef in bericht
Guessing that you've left out the class names in your code...
I do not see what causes the AV, but maybe I can contribute with three
1) I would not put Resume in the creator. If you want the thread to start
upon creation, use Create(false). Check help: the parameter tells whether to
start immediately or wait until resume is called.
2) Tthread has a procedure Terminate. You call it from the main thread to
signal that it should terminate. In the execute loop then replace If Fcancel
by If Terminated. Check help.
3) there is a classic article on threads by Martin Harvey. See