Rocco-

rcaputo++ for the response, and for all the work you've done on POE in general.

To rephrase what you said (see if I understood correctly):

The problem is that I only have one POE thing happening (the FollowTail), and when that session goes away, POE looks around and doesn't see anything else going on, so the whole POE kernel is exited. If I could find a way to keep the FollowTail session alive (even though it's not FollowTail-ing anymore) the kernel won't exit.

To see if I understood this concept correctly, I simply added the following lines to the original script, right after the call to _processData():

# This should simply create a dummy postback on the FollowTail session my $subref = $sess->postback('DontDie');

This works fine, so I believe you are correct, but don't understand why the second POE::Session->create() in _displayData() isn't considered my second POEy thing? I assumed that this was my second session that it would force POE to hang around until the Tk stuff died (even after my FollowTail session exited).

Obviously not, but I don't understand why...

Finally, one side issue I encountered was that I wasn't able to use postback() to fire the sendStop event to the myClient session. As far as I could tell (in my environment) the command  $session->postback("sendStop") does nothing.

Any help with these issues would be great!

Thanks

-Craig


In reply to Re^2: Confusion with POE & pTk (not yet unconfused) by cmv
in thread Confusion with POE & pTk by cmv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.