Information générale
Titre:
DBUSED(lcName) returns .F. but cannot OPEN DATABASE (lcName)
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement