DbUseArea: index file not opened on slow network

DbUseArea: index file not opened on slow network

Postby Timm Sodtalbers » Fri Aug 29, 2008 2: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
www.reportdesigner.info
Timm Sodtalbers
 
Posts: 25
Joined: Sat Oct 08, 2005 6:44 am
Location: Aurich, Germany

Postby James Bott » Fri Aug 29, 2008 3: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby demont frank » Fri Aug 29, 2008 4:55 pm

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

Frank
demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Postby Timm Sodtalbers » Fri Aug 29, 2008 5: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
www.reportdesigner.info
Timm Sodtalbers
 
Posts: 25
Joined: Sat Oct 08, 2005 6:44 am
Location: Aurich, Germany

Postby James Bott » Fri Aug 29, 2008 6:01 pm

Tim,

I see, that is more difficult to overcome.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: DbUseArea: index file not opened on slow network

Postby Enrico Maria Giordano » Fri Aug 29, 2008 8: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 54 guests