> I rarely clean up cursors.  Never had a need to, I just add more RAM <g>...
> Seriously, when I am doing a lot of testing, or am playing "Coding Cowboy",
> I will sometimes close a group of cursors just to reduce the clutter.  Never
> had to do so for performance reasons.  Then again, I had been running with
> 1Gb RAM on my machinery until recently.  Now I am hitting at 2Gb minimum.

I usually clean up cursors I create in code, but I don't fret if I
miss one here and there. There's some cursors I create implicitly
through setting the recordsource on comboboxes-- "select cname, iid
from table into cursor cboComboName" that I don't close myself. I
think VFP leaves those open, at least sometimes, IIRC...

Often times my cursors have a specific logical scope-- the procedure,
or the form. In the form, I'll do USE IN SELECT("crsCursor") entries
for each cursor created in that form, and I'll do the same at the end
of a method I had to use a cursor for.


-- 
Derek


_______________________________________________
Post Messages to: [email protected]
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/[EMAIL PROTECTED]
** 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.

Reply via email to