Hi all,
If it helps anyone the original discussion about adding the
Win32::Console::_SetStdHandle() and related changes can be found here
http://markmail.org/message/js5sold5cjpybdfw#query:broeren%20poe+page:1+mid:x7rqurekgiojuhxn+state:results.
It seems pretty clear that a lot effort went
2009/10/2 Rocco Caputo rcap...@pobox.com
First, thanks to Andrew Feren, POE::Wheel::Run::Win32 has been merged into
POE::Wheel::Run.
Great news !
I'm using POE::Wheel::Run::Win32 with my patch for bug #43995
https://rt.cpan.org/Ticket/Display.html?id=43995
Looks like you applied the patch.
Thanks for pointing that out. I had forgotten the backstory on it.
It strongly implies that the I/O redirection must be done BEFORE the
fork() call on Windows, as it seems that fork() communicates stdio to
exec() inside Perl. Time for test cases...
--
Rocco Caputo - rcap...@pobox.com
First, thanks to Andrew Feren, POE::Wheel::Run::Win32 has been merged
into POE::Wheel::Run.
Andrew has also reported a memory leak POE::Wheel::Run under Windows:
https://rt.cpan.org/Ticket/Display.html?id=50068
My problem is that I don't know Win32 APIs well enough to say whether
his patch
On Tue, Jun 16, 2009 at 10:19, Phil Whelanphil...@gmail.com wrote:
Hi Doug,
It looks to me that the OBJECT constant is from POE is being interfered with
by the OBJECT constant from Params::Validate. After removing the validate
method, the code seems to run OK.
I think you need one of
I've been away from the list for a while, but now I'm wondering if
everyone else hasn't, as well. Is anybody still here?
I've been having some trouble writing a couple of modules with object
states recently -- usually I stick to inline states -- and I was
hoping someone here would be able to
Please turn on warnings. You are using
my ($kernel, $self, $heap) = $_[KERNEL, OBJECT, HEAP];
when an array slice is needed
my ($kernel, $self, $heap) = @_[KERNEL, OBJECT, HEAP];
Note the difference between
1) poerbook:~% perl -e 'my ($a, $b, $c) = $x[0,1,2];'
(no output)
and with
A nasty error no doubt due to my rapid attempt at whipping up an
example program. I've checked my original code suffering from the
problem, and it doesn't suffer from the same problem.
In my other code, I'm still having problems finding the object
reference in the _start handler (or any other,
Sorry, works for me:
% perl -Mstrict -MPOE -MData::Dumper -wle '
quote my $self = bless { key = value };
quote
quote POE::Session-create(
quote object_states = [ $self = [_start] ],
quote heap = { alias = Alias }
quote );
quote
quote sub _start {
quote my ($k, $s, $h) = @_[KERNEL, OBJECT,
I'm attaching my actual module, minus the path (for your convenience),
and a test script that demonstrates the error. It doesn't suffer from
the original array slice problem. I've done this before (object
states, that is), but they were fragile even then -- or they are now,
anyway. I'm sure
Hi Rob,
I think you have the POE::Sesssion-create syntax slightly wrong.
This is from the docs
POE::Session-create(
object_states = [
$object_1 = { event_1a = method_1a },
$object_2 = { event_2a = method_2a },
],
inline_states = {
event_3 = \piece_of_code,
11 matches
Mail list logo