Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursosAdapter dettached cursor not so dettached
Message
From
23/10/2003 17:07:11
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00841809
Message ID:
00841842
Views:
12
This message has been marked as the solution to the initial question of the thread.
Hi Martin,

>
>What I see is that I assumed that once dettached, the cursor was in fact indepent from the underlying recordset. I can workaround this as I can close everything AFTER generating the XML... in this situation.
>
>Any comments or opinions appreciated.
>

Your assumptions were wrong. Once detached, the cursor is independent from the CursorAdapter object, but not from its data source. You can use CURSORGETPROP("ADORecordset") to get the Recordset associated with the cursor even if it is detached from the CursorAdapter object.

The error is reported because cursor is not fetched completely when connection is closed, more specifically, it is reported during an attempt to fetch more records. To avoid this problem, execute GO BOTTOM before closing connection or use oCA.FetchSize = -1 when you call CursorFill.

Thanks,
Aleksey.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform