Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBUSED(lcName) returns .F. but cannot OPEN DATABASE (lcName)
Message
De
22/11/2000 17:01:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
DBUSED(lcName) returns .F. but cannot OPEN DATABASE (lcName)
Divers
Thread ID:
00444781
Message ID:
00444781
Vues:
44
Hello,

1) The framework I use has the following code sequence:

lcAppInfoDBC = UPPER(..) && REsults in 'PL'
IF !DBUsed(lcAppInfoDBC)
...
OPEN DATABASE(lcAppInfoDBC) && Here is says "File in use"
ENDIF

2) The problem:

The OPEN DATABASE command causes error "File in use"

When the error ocurrs the DataSession Viewer is showing DataSession 2 (private datasession) with one free table open.

I have tried to see what is open in Datasession 1, but when I SET DATA SESSION TO 1, the viewer keeps showing datasession 2, so have not been able to determine if there is something there that is interfering with the OPEN DATABASE command yet time reporting DBUSED() = .F.

It doesn't seem that the DBC is open as a table in session 1, because USED('PL.DBC') = .F. ... or isn't that how it works ?

3) Questions:

How can I see datasession 1 in this circumstances?

What could be causing the problem in the first place?

Thank you very much.

Alex
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform