> question about threads:
> is it safe to call an object method from a thread, as long as the
> object method only contains local variables(not object variables) and
> thread-safe calls?
It's safe if you do not change other object properties/attributes in that
method.
Otherwise you may have to synchronise calls.
> i assume each thread gets its own copy of the local vars of the method...
That is correct.
> what i have done does work, im just trying to find out if it
> works because its supposed to, or if it 'just happens to for now'
> (which is bad :-) )
You should be alright here.
I call the same methods of an object from different threads.
Have a look for
"Multithreading - The Delphi Way."
at:
http://www.pergolesi.demon.co.uk/prog/threads/ToC.html
Hope it helps,
Sergei Stenkov
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"