Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can not access the selected table
Message
De
24/10/2013 17:40:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01586257
Message ID:
01586335
Vues:
36
>>>>That error happens then the datasource for a combo gets closed before the combo is destroyed.
>>>>
>>>Right, but in that particular form we set the RowSource to empty string before re-creating the source. But I think I was able to solve this problem by renaming the cursors. Apparently something is not closed properly and therefore causing conflicts but I was not able to trace it.
>>
>>It's been ages since I last had that error. Suspend when it happens and just fire up the debugger - check for any form that's still unreleased. Alternately, see which datasession is still dangling - it would belong to the offending form. Most frequently, there's an uncommitted buffer somewhere in that session, so it has closed some of the tables but couldn't close them all, which then left the combo orphaned. Also possibly caused by an unrelated error, if the error handler tries to close the form but can't, and thus causes this.
>
>That error dialog doesn't give you an option to suspend.

Then put an assert in the combo's requery (or refresh) to check that the rowsource is still open. Perhaps there you can catch it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform