Perry,
Try trapping for the close. Put this in the Watch pane and set a breakpoint on it:
USED('MyCursor')
The program will stop when the cursor is closed.
HTH
Mark
>I get this problem alot when I'm in debug mode. I create cursors in debug mode, and every so often they are closed by VFP while I'm still debugging a method or procedure. I close and restart VFP, but after 2 or 3 times, it does it again. Does this happen to anyone else? does anyone know how to rectify this problem??
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.