Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid cursor state
Message
De
19/11/2009 04:05:45
 
 
À
18/11/2009 20:22:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Database:
MS SQL Server
Divers
Thread ID:
01435486
Message ID:
01435529
Vues:
45
>I've got a situation where I'm getting a "Connectivity error:[Microsoft][ODBC Driver Manager]Invalid cursor state" error (AERROR() returns only one row) when trying to execute a rather simple SQL query. Forcing a pause in execution immediately before SQLEXEC() call would make problem go away. While single-stepping in debugger the problem doesn't occur. Adding WAIT WINDOW would make problem go away (doing WAIT WINDOW "..." TIMEOUT 0.5 would workj as well). Calling MESSAGEBOX() would make problem go away. Calling INKEY() works too. Tried DOEVENTS, but that didn't work (I still get the error). For the time being I've left the INKEY(0.125) in the code (with a comment to indicating that this is merely a kludge to bypass a error). Anybody have any idea what could be causing this error?

A couple of very general SWAGs:

- check any connection or cursor properties related to synchronous vs. asynchronous operation - anything not as expected or inconsistent?

- try disabling any AV in use
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform