Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data session won't close, remaining recordset reference?
Message
De
20/04/2002 13:23:22
Jorge Haro
Independent Consultant
Juarez, Mexique
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Data session won't close, remaining recordset reference?
Divers
Thread ID:
00647237
Message ID:
00647237
Vues:
49
Hi all, I've had a problem for a while with data sessions that won't close, no tables(cursors) remain open, and there are no dangling object references as far as I can tell, I released every variable manually, display memory shows "0 variables defined", but the data session remains open. I've also used David Frankenbauch's (hope I got that right) ObjRef utility to check on this.

I've managed to pin it down to this single line of code
lnRV = loRS.Fields(1).Value 
loRS is an ADO recordset returned from an ADO Command object, I can't see the problem with this value asignment, I'm not creating a reference or anything.

This code is in a method in my base form class, lnRV is declared as a local variable and is the return value for the method. If I comment out the line the data session closes normally, if I leave it as it is the data session remains open as Unknown(somedatassesion id).

I don't know if this causes any problems, I'm worried about a possible memory leak though. TIA for any help.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform