Re: SimpleDBI -- Undefined subroutine &POE::Component::SimpleDBI::SubProcess::main

2006-12-07 Thread Jake Peavy

On 12/7/06, Robert Landrum <[EMAIL PROTECTED]> wrote:


Jake Peavy wrote:
> Undefined subroutine &POE::Component::SimpleDBI::SubProcess::main called
at
> C:/Perl/site/lib/POE/Component/SimpleDBI.pm line 810.
>

POE::Component::SimpleDBI::SubProcess isn't loaded by SimpleDBI.  It
does two different things.  For win32, it calls SubProcess::main(), and
for everything else, it executes an external perl process that
explicitly loads the module.

I would add

use POE::Component::SimpleDBI::SubProcess;

near the top of SimpleDBI, and submit a patch to the author.



You know, that had occurred to me but I wasn't sure I knew what I was
talking about.

I added it, but now I have a real problem - the script hangs trying to set
up the Wheel:

Starting up SimpleDBI! at C:/Perl/site/lib/POE/Component/SimpleDBI.pm line
781.
Starting up SimpleDBI! at C:/Perl/site/lib/POE/Component/SimpleDBI.pm line
781.
[Thu Dec  7 13:44:24 2006] connecting to 'db1'
[Thu Dec  7 13:44:24 2006] connecting to 'db2'
[Thu Dec  7 13:44:24 2006] initiating db1 query
[Thu Dec  7 13:44:24 2006] initiating db2 query
Attempting creation of SubProcess wheel now... at
C:/Perl/site/lib/POE/Component/SimpleDBI.pm line 792.

the script hangs at that point and must be killed.

any ideas?  In the meantime I'll submit the patch as indicated.

Thanks again,

--
-jp


Chuck Norris never hides, he only seeks.


Re: SimpleDBI -- Undefined subroutine &POE::Component::SimpleDBI::SubProcess::main

2006-12-07 Thread Robert Landrum

Jake Peavy wrote:

Undefined subroutine &POE::Component::SimpleDBI::SubProcess::main called at
C:/Perl/site/lib/POE/Component/SimpleDBI.pm line 810.



POE::Component::SimpleDBI::SubProcess isn't loaded by SimpleDBI.  It 
does two different things.  For win32, it calls SubProcess::main(), and 
for everything else, it executes an external perl process that 
explicitly loads the module.


I would add

use POE::Component::SimpleDBI::SubProcess;

near the top of SimpleDBI, and submit a patch to the author.

Hope that helps,

Rob