Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBUSED(lcName) returns .F. but cannot OPEN DATABASE (lcName)
Message
From
22/11/2000 17:01:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
DBUSED(lcName) returns .F. but cannot OPEN DATABASE (lcName)
Miscellaneous
Thread ID:
00444781
Message ID:
00444781
Views:
40
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
Next
Reply
Map
View

Click here to load this message in the networking platform