>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