Re: Tables left open when form closes

Author: Fred Taylor

Posted: 2012-08-24 at 15:55:30

A private DataSession will close it's own use of a table. Are you sure

that the table wasn't already open before your private DS form ran? If the

tables were already open, the private DS will not close them, only its use

of the tables, essentially like a USE AGAIN.

Fred

On Fri, Aug 24, 2012 at 1:11 PM, Peter Hart

<PHart@peterhartcomputers.co.uk>wrote:

> I have an application which uses Arg Software Ribbon bars.

>

> When I click on an icon to open a form which needs to open a table

> exclusive i.e. for re-indexing. I get an error that the table is already in

> use. I don't get this error if either this is the first form opened or I

> have only opened forms that don't use that particular table.

> If I open FoxPro whilst the application is open I can see which tables

> have been used by trying to open the tables exclusive, and the I get the

> error.

> All the forms are based on a form class that has its datasession property

> set private. I thought these would automatically close any tables opened

> by the form as the form was closed.

>

> Any ideas were I am going wrong?

>

> Is it possible to run through all used work areas to see if the tables

> required are in use and if so close them?

>

> T.I.A.

>

> Peter

> Peter Hart Computers

>

>

>

>

> --- StripMime Report -- processed MIME parts ---

> multipart/alternative

> text/plain (text body -- kept)

> text/html

> ---

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAJCBksobY_DP614kCt3biDEZXvwpGqFVO+T5d=cwihf7NwNw6A@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Fred Taylor