If I have both the undef and the disconnect() I get the message:
Can't call method "disconnect" on an undefined value at dbtest.pl line 19.
Having just one or the other doesn't make a difference to my overall error,
though.
I'm also finishing my statement handle, but the presence or absence of that
doesn't help much. In fact, I can take out the finish() and disconnect()
events entirely.
Is there any way to trap *what* object's destruction is raising the error?
It says during "global destruction", so does that mean destruction of main?
Or am I thinking too much in C terms there?
>From: "Michael A. Chase" <[EMAIL PROTECTED]>
>To: "P B" <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: Re: DBI with DBD::Oracle Problem #2
>Date: Mon, 19 Feb 2001 04:47:59 -0800
>
>Try adding
> $dbh = undef;
>after the disconnect() and see if that helps. At least the handle will be
>released before global destruction.
>--
>Mac :})
>** I normally forward private database questions to the DBI mail lists. **
>Give a hobbit a fish and he'll eat fish for a day.
>Give a hobbit a ring and he'll eat fish for an age.
>----- Original Message -----
>From: "P B" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Sunday, February 18, 2001 10:19 PM
>Subject: RE: DBI with DBD::Oracle Problem #2
>
>
> > Okay, after some work on this, I'm getting this problem consistently on
>the
> > actual NT server. You're right, the error happens after the program
>runs --
> > during destruction. Results are returned, but the error is routinely
> > causing scripts -- CGI -- to crash, or giving other problems. The error
>is
> > (as before):
> >
> > (in cleanup) Can't call method "FETCH" on an undefined value at
> > D:/Perl/
> > site/lib/Win32/TieRegistry.pm line 1486 during global destruction.
> >
> > Is there a way to at least catch/throw this in a CGI and tell perl to
>ignore
> > it? Or... can give perl a flag to tell it to ignore it?
> >
> > This time I'm on an NT 4.0 with active perl 5.6.1 (the most recent) and
> > updated DBD, DBI, etc.
> >
> > No firewall or anything like that is up....
> >
> > Suggestions greatly appreciated, as I need to get this up and working in
>a
> > couple of days.
>
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.