Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP COM Server in MTS could not release. why?
Message
From
07/03/1999 09:20:41
 
 
To
07/03/1999 03:35:38
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00194952
Message ID:
00194967
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform