Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private data session causes error
Message
De
30/08/2000 14:23:26
 
 
À
30/08/2000 13:34:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00410719
Message ID:
00410919
Vues:
20
>Trey,
>The cursors in both forms have exclusive set to .f. in the dataenvironment.
>The database is also opened as shared.
>
>Dave

OK. This one's a poser so far. I'm trying to duplicate this, and I cannot except in the one circumstance where one the table is used exclusively by one of the forms, so bear with me if I am asking obvious questions.

First off - Make both form's DataSessions private. That ought to fix it.

Is the database opened explicitly - by that I mean with OPEN DATABASE SHARE and not implicitly by USEing the table? It sounds like it may be since you say it's opened shared, but I'm just verifying. It doesn't need to be.

When an EXE is run, unless otherwise specified, EXCLUSIVE is set ON.
In each form's Load() (or better yet, your form superclass' Load() event) put the line
SET EXCLUSIVE OFF
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform