Hello,
I am struggling to debug a problem we are having with IIS and a COM object
we have built written in Perl. What happens is that upon the expiration
of an ASP Session, IIS crashes, returning back that it has failed
to create the object.
It is rather difficult to debug this problem without having any
server-side debugging. Regardless here is some more info:
In our global.asa file we have the following:
<OBJECT SCOPE=Session RUNAT=Server ID=WebABC PROGID="WebABC.WSC">
</OBJECT>
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Session_OnStart()
WebABC.init "param1", "param2"
End Sub
</SCRIPT>
When the session expires, and is recreated upon a user loading a page, it
fails on the WebABC.init line in the Session_OnStart(). We have created a
logging mechanism which writes to a text file, and we call this logging
method in the first line of the init() method. It never gets called after
the session expires and is reloaded!
I created a Session_OnEnd() in our global.asa, and call
WebABC.clearSession which I also created in our component. This does get
called after a session expires, as I get the appropriate logging message.
I have tried setting variables to null in the WebABC.clearSession method,
but have had no luck. I also tried a WebABC=null in the
Session_OnEnd() method in our global.asa.
I have ran out of ideas. All I know is that the problem exists somewhere
after the session expires, and just before it calls the WebABC.init()
method.
Does anyone have any suggestions on how to perform some more sophisticated
debugging, or have encounted a problem like this before?
Thanks in advance for your help,
- dan
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web