Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Database object is being used by someone else
Message
De
11/01/1999 12:49:45
 
 
À
08/01/1999 16:41:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00172901
Message ID:
00174709
Vues:
32
Hi Erik.

>What I have tried to do is trap for the error and allow the user to cancel or retry. Since I think the record is only being locked for a split second, I thought this strategy would work nicely. Unfortunately though, issuing a RETRY from the error routine produces a VFP error (not trappable) that says something like "Mismatched Pushjmp/Popjmp call" and the app quickly exits.

I'd have thought RETRY would work too, but can sort of see that this is a different case than the normal record locking problem. You might instead tell the user you have to close the form because of a resource contention (not those exact words <g>) and then do so. That way, they'd control reopening the form. Alternatively, you could have a timer do it automatically, but that raises issues like what happens if the error occurs again.

Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform