Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lingering DataSession
Message
De
14/05/1999 14:45:57
 
 
À
14/05/1999 14:34:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00219158
Message ID:
00219166
Vues:
16
Hi Tom ---

I think you might want to consider using the default datasession in all forms if you are going to be creating your cursors from the default datasession and outside of the forms.

Either that or ...hmmm....maybe convert your SPT stuff to an ADO recordset object. This way the datasession stuff is irrelevent.


>I have a problem with a lingering datasession. The default
>datasession is level 1 and the private datasession is level 2
>but level 2 does not go away after the form completes.
>
>I am using VFP 6 and under the default datasession I am
>instantiating a SQLConnect object to Oracle. Once an
>event occurs, I kick off a form with a private data session
>(session 2) that I would like to use the already active
>SQLObject. In order to return the data to the correct
>datasession (session 2) I passed in the calling form's
>datasessionid to the SQLObject.
>
>The problem is that the private data session (level 2) is
>still around after the form closes. Why? I thought if
>I simply copy the form.datasessionid to a VFP variable and
>just passed it that there would not be any lingering
>reference.
>
>I would expect for datasession level 2 to close itself once
>the form with the same datasession is no longer active. Any
>ideas on how to rectify this situation? I want the SQLObject
>to instantiate in the main program because it is slow to
>bring up and should be available to other forms that need it...
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform