close the database. after I release the object, I expect the data
session to vanish, but it remains in the enviroment, along with the
Default data session. This is a drag because as a new object instances
of my class are created, I accumulate data sessions.
How can I get rid of this private data session when I destroy my object?
Thanks in advance
-bku
If you assign an object reference to a public variable in a method of a form
with a private datasession, the datasession is not released properly when
the form is released.
If you have opened any tables in any methods of the form, the tables are not
closed when the form is released. (Tables opened in the Data Environment of
the form are closed properly.)
You can close the extra open tables by putting CLOSE DATA in the Form.Unload
event. The open datasession will then eventually be re-used by VFP.
David Dunetz
SweetWARE
B&K <b...@ix.netcom.com> wrote in message
news:389BC260...@ix.netcom.com...
-bku
You might consider gradually removing functionality from your form until the
problem goes away, or start with a plain form and gradually add
functionality until the problem occurs. This will at least allow you to
track down the cause.
David Dunetz
SweetWARE
B&K <b...@ix.netcom.com> wrote in message
news:389CF493...@ix.netcom.com...