On Thu, 2004-02-19 at 16:54, Morbus Iff wrote:
>   * LibDB::DB is correctly determining the database type.
> 
>   * LibDB::DB is correctly returning a blessed
>     class for that database type (LibDB::DB::MySQL).
> 
>   * LibDB::DB::MySQL->connect does exist.
> 
>   * LibDB::DB::MySQL->connect does work.
> 
> But, still, I'll randomly get the error [1].

It's not random; you just don't know what series of steps reproduces it
yet.  If you run with -X, you can probably find a sequence that will do
it.

Usually people find that pulling things out in order to reduce things to
a simple example will eventually show what the problem is.  You also can
try putting in a bunch of logging around the places where you call this
method.

> What should I look for?

It would help if you could give some context by showing the code that
produces this error.  A quick look makes me think that this code is
suspicious:

    # if it exists, bless ourselves into its class.
    eval "use LibDB::DB::$user_dbtype"; # load this class into memory.
    my $self = bless { _error => '' }, "LibDB::DB::$user_dbtype";

You bless a hash ref into a class, but you don't check the value of [EMAIL PROTECTED]
That class may not have actually loaded.

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to