Solved

Paradox Problem

Posted on 2000-05-18
13
365 Views
Last Modified: 2010-04-04
Hi guys,

I'm using a paradox database with multiple users over a network (bad idea I know, wasn't my idea but I'm stuck with it).

Apparently a user is getting a message that says "too many locked records" what does this mean? whys it happening?and it there anyway of stopping it????

I must say that paradox is by far the worst database ever!!!!

Please help.

thanks
woody.
0
Comment
Question by:WoodyJ3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 2820609
listening....
0
 

Expert Comment

by:Portal
ID: 2820774
The most probable cause of this (I have found) is that you haven't set the sessions private directory to somewhere on the local computer.

For example
session.privatedir := 'c:\temp';

That will ease the locked record problem. You can also test out your app with localShare = False (BDE Setting).

If these dont solve your problem then it may be caused by a genuine locking problem. Are you applying read locks to records? Are you freeing TTables without closing them?
0
 
LVL 2

Expert Comment

by:Roza
ID: 2820783
listening...
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:WoodyJ3
ID: 2820820
The steps I use are

run two queries.
append record to a table.
close both queries.
Open both queries.  (refresh unreliable)

If you do this enough times you get the error.

This error only seems to happen when I connect to a database that is a share on another computer.

I'll try out that local share stuff.

Thanks
Woody.
0
 

Author Comment

by:WoodyJ3
ID: 2820864
nah, tried that. Didn't seem to make any difference.  I just wish I had time to convert the lot to a decent database.

Woody.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2820906
hi WoodyJ3,

i would not say that paradox is worst.

two tips

don't use cachedUpdates, if you are modifying a large amount of records in one step.

open the table exclusive.

you cannot lock more than 512 records at one time (or was it 1024?)

meikl
0
 

Accepted Solution

by:
Portal earned 15 total points
ID: 2820934
Change the "appending records to a table" bit to an SQL Statement if possible. Otherwise make sure the Table is not open when a Query is open.
 According to Borland you can also get lock problems when you perform query operations while a TTable is open (not sure why but its in a Delphi TI).
0
 

Expert Comment

by:isaka
ID: 2821207

Hi Woody,

I think that is happening because your tables and net dir file are at the same folder.
The solution I propose is make a sub-folder "data" and put all your tables there, and another sub-folder "netdir" and put the netdir file there.
Also, on all workstations change DBE configuration NET DIR='net_path\netdir'.

Isak
0
 

Expert Comment

by:Alfaisal
ID: 2821669
Listening.....
0
 

Author Comment

by:WoodyJ3
ID: 2825933
Im not using cached updates and my Net file is in the root of the share, with the data a folder below.

The comment made by Portal is interesting though.  I'll check that one out.

I'm getting the feeling that Paradox was invented solely to p**s me off.

I'll let you all know.

Cheers
Woody.
0
 

Author Comment

by:WoodyJ3
ID: 2833102
err... well...  I'm still investigating the problem with no luck so far.  I've still got a few possible ideas to fix it so I'll let you all know sometime during the week.

ta
Woody.
0
 

Author Comment

by:WoodyJ3
ID: 2911208
Comment accepted as answer
0
 

Author Comment

by:WoodyJ3
ID: 2911209
I tried it and it doesn't crop up as much as it used to so it's a bit better.

I've had enough of the bloody crap database so I'm half way through upgrading to SQL.

Many Thanks
Woody.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question