Thanks for your suggestion. I forgot that 'Set' was required for objects
in VB - I've been programming in Perl and Java for too long.
Unfortunately though, this did not fix the problem.
It must be some sort of memory corruption within the com object that is
causing havoc in IIS. I'm going to attempt to write a standalone VB app
to debug the com object further.
- dan
On Thu, 15 Feb 2001, Vinod Kumar S wrote:
> hi ,
> try this
>
> set WebABC = nothing
>
> this probably might work
>
> regards
> vinod
>
> What's in a name? That which we call a rose by any other name would smell
> as sweet. - Shakespeare in Romeo and Juliet.
>
> Vinod Kumar S
> Software Engineer
> Infosys Technologies Limited
> Phone : (080) 852 0261 Ext 7309
>
>
>
> -----Original Message-----
> From: Dan Stefura [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 15, 2001 4:00 AM
> To: [EMAIL PROTECTED]
> Subject: PerlCOM/IIS problem
>
>
> 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
>
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web