FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DbUseArea: index file not opened on slow network
Posts: 25
Joined: Sat Oct 08, 2005 06:44 AM
DbUseArea: index file not opened on slow network
Posted: Fri Aug 29, 2008 02:59 PM

Hi,

in a slow network environment (2 Mbit/s) DbUseArea() does not open the corresponding index file.
I get the error "DBFCDX/1201 - Workarea not indexed" when I try to call DbSeek().
The same code works on any network with normal speed.

Has anybody a idea why this happens?

AUTOPEN is set to ON and I use SET ORDER TO 1 after calling DbUseArea()

I already report this in comp.lang.xharbour with no result.

Best regards, Timm.



Timm Sodtalbers

Sodtalbers IT
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
DbUseArea: index file not opened on slow network
Posted: Fri Aug 29, 2008 03:16 PM

Personally, I would use this as an excuse to tell whoever that they need to upgrade their network hardware. No matter what you do they are never going to be satisfied with the performance of your app and they will blame your app. Gee, how cheap are network cards now? How much do they cost vs. lost productivity?

I do have one suggestion, but consider the above before you try it. Try adding a sysrefresh() after opening the DBF and index. Even if it works, I wouldn't tell them until after you have tried to convince them to upgrade their hardware and failed. In fact, I might just tell them that the problem can only be fixed by a hardware upgrade.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
DbUseArea: index file not opened on slow network
Posted: Fri Aug 29, 2008 04:55 PM

Why not try a DO WHILE with a test to see that the indices are open ?

Frank

Posts: 25
Joined: Sat Oct 08, 2005 06:44 AM
DbUseArea: index file not opened on slow network
Posted: Fri Aug 29, 2008 05:21 PM

James,

the customer uses a network environment with good performances.
But there is one pc that is connected to the server by a very slow telephone network cable. The distance between the server and that pc
is about 700 mtr.

Best regards, Timm.



Timm Sodtalbers

Sodtalbers IT
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
DbUseArea: index file not opened on slow network
Posted: Fri Aug 29, 2008 06:01 PM

Tim,

I see, that is more difficult to overcome.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: DbUseArea: index file not opened on slow network
Posted: Fri Aug 29, 2008 08:44 PM
Timm Sodtalbers wrote:Hi,

in a slow network environment (2 Mbit/s) DbUseArea() does not open the corresponding index file.
I get the error "DBFCDX/1201 - Workarea not indexed" when I try to call DbSeek().
The same code works on any network with normal speed.

Has anybody a idea why this happens?


I really can't see how the network speed could affect the index opening...

EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
DbUseArea: index file not opened on slow network
Posted: Fri Aug 29, 2008 10:49 PM

Enrico,

>I really can't see how the network speed could affect the index opening...

I agree, except that I have all kinds of very strange things happen that were finally solved by a simple sysrefresh(). Now, I try that more often.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion