Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release datasessions?
Message
De
07/04/2010 13:55:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01459196
Message ID:
01459210
Vues:
56
>>>>>Hi,
>>>>>
>>>>>Sometimes when I am debugging an application I run into a problem during one of the tables updates. And then I cannot close VFP since I am getting message:
>>>>>
>>>>>Data session #- some number - cannot be released with open transaction.
>>>>>
>>>>>So far, the only way I found to close VFP in this case is to end it in Task Manager.
>>>>>
>>>>>Is there a command I can issue in the Command window to release the transactions?
>>>>>
>>>>>TIA.
>>>>
>>>>You need to issue tablerevert(.t.) and then rollback after switching to this DS.
>>>
>>>I tried tablerevert(.t.) but it does not work. I guess at the time of the error the current alias is "lost" and tablerevert() needs an alias to work with.
>>
>>Yes, switch to the right DS and try tablerevert and more importantly - rollback transaction.
>
>How do you switch to the right DS? Is there a comment that will show me list of DSs?
set
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform