Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP COM Server in MTS could not release. why?
Message
De
07/03/1999 09:20:41
 
 
À
07/03/1999 03:35:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00194952
Message ID:
00194967
Vues:
17
>Hi~ all Folks......
>I used VFP COM Server ( In process Dll ) with MTS
>in Global.ASA
>I Coded below this.
>
>*************************************************
>Sub session_onStart
> Set oObj = Server.CreateObject("dev99.dev99")
> Set Session("main") = oObj
>End Sub
>
>Sub session_onEnd
> Session("main")=nothing
>End Sub
>*****************************************************
>
>But when on Session is Out,
>My COM in MTS could not be released.
>So Whenever hited my site, the number of VFP COM Server that called by ASP is increased.
>
>Why my dll is not released?
>I surelly coded in session_onEnd event => Session("main")=nothing
>
>Do you know why?
>Thanks.
>Lee

One of the rules of using MTS is that you don't hang onto the object that long. The object should be stateless You're bound to have problems doing things this way. You should createobject as late as possible and release it as early as possible. So, you should create and release the object in the individual ASP pages.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform