I'm trying to start an app with a clear slate, but I can't close its chief
dbc reliably. The app creates a private session object and opens the dbc in
the private session. I may not close it properly in the app during testing
for whatever reason, but the main prg does a close all & clear all to make
sure that no project managers are open, then loops through aSessions and
nests aDatabaseses to visit every possible dbc & does a close databases all
for each. Yet, when I finish all this, dbused() still shows that it's open
and I can set database to ... successfully without having to open database
first.
How can I close the blasted thing?
--
-Lew
The workers took the robot for Maria.

Re: Can't close a dbc by Fred

Fred
Sat Mar 15 11:30:32 CDT 2008

You don't have a project open on the data tab, do you? That would keep a
database open.

--
Fred
Microsoft Visual FoxPro MVP


"Lew" <lew@fastmail.fm> wrote in message
news:e%23%23QAUqhIHA.5260@TK2MSFTNGP03.phx.gbl...
> I'm trying to start an app with a clear slate, but I can't close its chief
> dbc reliably. The app creates a private session object and opens the dbc
> in the private session. I may not close it properly in the app during
> testing for whatever reason, but the main prg does a close all & clear all
> to make sure that no project managers are open, then loops through
> aSessions and nests aDatabaseses to visit every possible dbc & does a
> close databases all for each. Yet, when I finish all this, dbused() still
> shows that it's open and I can set database to ... successfully without
> having to open database first.
> How can I close the blasted thing?
> --
> -Lew
> The workers took the robot for Maria.
>



Re: Can't close a dbc by Lew

Lew
Sat Mar 15 12:00:02 CDT 2008

As I indicated, Fred, there are no open projects & close all would take care
of that anyway.

"Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
news:%23qqtnmrhIHA.2084@TK2MSFTNGP02.phx.gbl...
> You don't have a project open on the data tab, do you? That would keep a
> database open.
>
> --
> Fred
> Microsoft Visual FoxPro MVP
>
>
> "Lew" <lew@fastmail.fm> wrote in message
> news:e%23%23QAUqhIHA.5260@TK2MSFTNGP03.phx.gbl...
>> I'm trying to start an app with a clear slate, but I can't close its
>> chief dbc reliably. The app creates a private session object and opens
>> the dbc in the private session. I may not close it properly in the app
>> during testing for whatever reason, but the main prg does a close all &
>> clear all to make sure that no project managers are open, then loops
>> through aSessions and nests aDatabaseses to visit every possible dbc &
>> does a close databases all for each. Yet, when I finish all this,
>> dbused() still shows that it's open and I can set database to ...
>> successfully without having to open database first.
>> How can I close the blasted thing?
>> --
>> -Lew
>> The workers took the robot for Maria.
>>
>
>