For Programmers: Free Programming Magazines  


Home > Archive > PERL POE > June 2005 > Can't post an event to sender session









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can't post an event to sender session
Pronichev Alexander

2005-06-08, 9:04 pm

Greetings,
Note first that I am relatively new to POE and english isn't my native language.
The problem is that I've 2 sessions (wrapped by my components), 1st session call an event of 2nd session and 2nd session create new component, do it's job and then have to call an event of 1nd session. I do it like this: $kernel->post( $_[HEAP]->{sender},
... ); I save a $_[HEAP]->{sender} in 2nd session by $_[SENDER]. Now the problem: if the 1st session didn't call $kernel->set_alias(...), in it's _start event, then the previous "post", doesn't work, otherwise it works fine. What have I done wrong?

--
WBR dyker
Agava Software
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com