Page 1 of 1
Some Example for reading!!
Posted: Mon 31 Jan 2005 12:08
by kitten
Hi:
I need to Append or Edit in the Thread,
How do i write
I think the lock is needed?
right?
I need some example to reading
Thank you
Posted: Tue 01 Feb 2005 09:34
by Ikar
In each thread you need create its own set of MyDAC components (TMyConnection, TMyCommand etc).
A necessity of locking determines not depending on multi-threading but depending on the application logic. Usually, multi-threaded application from the point of view using locks doesn't differ from several single-thread applications.
Please pay attention to TCustomMyDataSet.Lock, TCustomMyDataSet.LockTable methods and TCustomMyDataSet.Options.CheckRowVersion property.