G
Grant Schenck
Hello,
I posted an this issue before but I'm clearer on what is going on.
I have a simple web site with a global.asa and a single .asp file.
In global.asa I handle both Application_OnStart and Application_OnEnd (see
below.)
The ShoreTelMakeCallTransfer object is a simple VB test object which
currently just logs class_initialize and class_terminate along with
OnStartPage and OnEndPage.
When I acess my ASP page, I see the folowing output from my logging:
--> Class_Initialize
<-- Class_Initialize
--> OnStartPage
<-- OnStartPage
--> OnEndPage
<-- OnEndPage
--> Class_Terminate
<-- Class_Termiante
What I don't understand is why Class_Terminate is called?
Based on the fact that in Application_OnStart I:
set Application("ShoreTelMakeCallTransfer") = ShoreTelMakeCallTransfer
Shouldn't that cause the object to stay loaded????
Thanks, Grant Schenck
-------------------------------------------------------
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Option Explicit
Sub Application_OnStart
On Error Resume Next
Dim ShoreTelMakeCallTransfer
Application("ShoreTelMakeCallTransfer") = NULL
set ShoreTelMakeCallTransfer =
Server.CreateObject("STMakeCallTransfer.STObject")
set Application("ShoreTelMakeCallTransfer") = ShoreTelMakeCallTransfer
End Sub
Sub Application_OnEnd
On Error Resume Next
Dim ShoreTelMakeCallTransfer
set ShoreTelMakeCallTransfer = Application("ShoreTelMakeCallTransfer")
set Application("ShoreTelMakeCallTransfer") = NULL
Application.Contents.Remove("ShoreTelMakeCallTransfer")
End Sub
</SCRIPT>
I posted an this issue before but I'm clearer on what is going on.
I have a simple web site with a global.asa and a single .asp file.
In global.asa I handle both Application_OnStart and Application_OnEnd (see
below.)
The ShoreTelMakeCallTransfer object is a simple VB test object which
currently just logs class_initialize and class_terminate along with
OnStartPage and OnEndPage.
When I acess my ASP page, I see the folowing output from my logging:
--> Class_Initialize
<-- Class_Initialize
--> OnStartPage
<-- OnStartPage
--> OnEndPage
<-- OnEndPage
--> Class_Terminate
<-- Class_Termiante
What I don't understand is why Class_Terminate is called?
Based on the fact that in Application_OnStart I:
set Application("ShoreTelMakeCallTransfer") = ShoreTelMakeCallTransfer
Shouldn't that cause the object to stay loaded????
Thanks, Grant Schenck
-------------------------------------------------------
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Option Explicit
Sub Application_OnStart
On Error Resume Next
Dim ShoreTelMakeCallTransfer
Application("ShoreTelMakeCallTransfer") = NULL
set ShoreTelMakeCallTransfer =
Server.CreateObject("STMakeCallTransfer.STObject")
set Application("ShoreTelMakeCallTransfer") = ShoreTelMakeCallTransfer
End Sub
Sub Application_OnEnd
On Error Resume Next
Dim ShoreTelMakeCallTransfer
set ShoreTelMakeCallTransfer = Application("ShoreTelMakeCallTransfer")
set Application("ShoreTelMakeCallTransfer") = NULL
Application.Contents.Remove("ShoreTelMakeCallTransfer")
End Sub
</SCRIPT>