Some Example for reading!!

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kitten

Some Example for reading!!

Post by kitten » Mon 31 Jan 2005 12:08

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

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Tue 01 Feb 2005 09:34

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.

Post Reply