Delphi
--
Questions
--
Followers
Top Experts
All of the sudden we are having problems with Lock Timeouts. These can occur when a table is being opened or during processing. There are no table locks involved.
Other factors that may or may not be involved:
Multiple instances of tables can be open
TDatabase component used to switch to different client directories (open/close to switch)
Remote users are logging through a Citrix server
Recently (but after timeout problems) upgraded BDE from v4.x
Some things we have tried include:
Upgrading the BDE
Setting the Session PrivateDir to the users' local harddrive for sql lock files
Setting the Session LockRetry to a greater number
Lock files seem to be a mystery with the program having little control over them. The easy answer is to upgrade Delphi and use a different database but other factors at this moment prevent that. What can cause lock timeouts; can you programatically trap or prevent them?
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
When app1 tries to release its' lock, BOOM, it cannot because of the lock applied by the second application.
You can try adding:
Check(DbiSetLockRetry(5))
to your code.
We've already tried Check(DbiSetLockRetry(5)),






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Delphi
--
Questions
--
Followers
Top Experts
Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.