Hello Peter,

I don't know if this will help but this is my experience using the BDE
in a multi-threaded enviroment.

The BDE is not thread-safe but can be effectively thread-safe is you
code it correctly. This means that each thread must have a local
TSession, TDatabase, and TTable/TQuery. If any of those components
start cross threading you will experience all sorts of nasty problems.
Also, the SessionName and the DatabaseName must be unique for each
thread, otherwise the underlying DBI objects are the same.

Furthermore, if you are using dBase tables and running your
application as a service you can have further problems when the
current interactive user logs out.

The good news is that is you respect these rules, then the BDE will
run very happily even on large SMP machines. We have many such
installations, although migrating to DBX4.

Hope this helps.


-- 
Best regards,
 Stephen                            mailto:[EMAIL PROTECTED]


__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to