Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form's datasession is not released
Message
De
29/03/2002 17:39:45
 
 
À
29/03/2002 17:19:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00639028
Message ID:
00639084
Vues:
24
>If the declaration were Private it would not need to be explicitly "released" it would "Like an old soldier, just fade away"
>
>Glenn

Glenn,

The problem is that it would fade away as soon as the form.Init() finishes. I do not know whether that is the intention.

Another solution which seems to work is

xx=createobject( 'test', set('data'))

..
xx = Null && or release xx

We declare oMatchStats[1] as a form property
&& init
LPARAMETER tcDBC
*--- This is the initialization method for this class ...

*--- DNG 5/9/2000: Store database to object property.
*--- NOTE: All update related functions should reference oupdate.curdbc instead of ojc.curdbc.
*----------01/29/02 add these settings here:
SET DELE ON
SET TALK OFF
SET SAFETY OFF
SET EXACT ON
THIS.curdbc = m.tcDBC
*--- Start statistics form.
DO FORM matchstats NAME this.oMatchStats[1] LINKED NOSHOW
SET DATASESSION TO this.oMatchStats[1].DATASESSIONID
THIS.pDataSession = this.oMatchStats[1].DATASESSIONID
*--- DNG 6/28/2001: Default pnpostdatasession.
THIS.pnPostDataSession = THIS.pDataSession

SET MULTILOCKS ON	&& For buffering for this new datasession.
Destroy releases this.oMatchStats[1], which in turn releases the form
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform