Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR timing out in Windows NT
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00240921
Message ID:
00240960
Vues:
28
Nigel,
thanks for your response. I believe the speed of the call is the issue (on NT.) If I call the function multiple times in a while loop, after between three to six calls, the routine works. Is it the ADIR command, or is it the slowness of the network's response or timeout parameter setting?

We have tried the following code to test the problem:

---
lcTEST = left(lcDIR, len(lcDIR) - 1)

ln_cnt = 0

DO WHILE adir(laTEST, lcTEST, 'D') = 0 AND ln_cnt < 300
ln_cnt = ln_cnt + 1
@10,10 SAY STR(ln_cnt) +" - "+ STR(ln_cnt + 1)
ENDDO
IF ln_cnt = 300
do ERROR with 'The directory ' + lcDIR + ' was not found.'
lcDIR = '*ERROR*'
endif ln_cnt
---

lcDIR is the string of the directory. laTEST is the array that contains the directory contents.

Once again, thanks in advance!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform