This is a good one.  I got a sanity check on this from a friend to
make sure I wasn't missing something..  Could be a cgiapp 2.1 issue --
I seem to remember that there was one or two.

Anyway, I've got debug output throughout my code telling me where I
am.  Basically, CGI::Application::new() calls my cgiapp_init() and
setup(), but hangs for about a minute.

In my instance CGI, I have debug messages before and after my
constuctor, and that's where it hangs -- right between my setup()
debug message which is the last statement to be executed before I fall
out of the last conditional(s) and the debug statement in my CGI that
prints out confirmation that the object has been instantiated on the
next line:


print STDERR "before new\n";
my $webapp = Client::ReportApp->new('TMPL_PATH' => "$CONFIG{'TEMPLATE_DIR'}/");
print STDERR "After new\n";

Hanging only happens when a certain parameter set to one of 4 values.
When it's set to any of the other values, it doesn't hang.  This is
all before I do anything in the code.  The big query for this report
is slow, but it's a known sql optimization problem, and besides, it
occurs much later in the program when things really get going.

here's the end of new():

        $self->cgiapp_init(@args);

        # Call setup() method, which should be implemented in the sub-class!
        $self->setup();

        return $self;
}


So, by my reckoning, when I leave setup, the constructor should also
return and I should get my debug message "After new" as above.

What's up here, guys?

-Eric.

-- 
Eric D. Berg <[EMAIL PROTECTED]>
Web Development / Solaris-Linux / Perl / SQL
http://nylug.org/~eberg
Tel. 646-418-3608

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to