in reply to Re: Perl tk gui freezes after pop up list is launched.
in thread Perl tk gui freezes after pop up list is launched.

readline is blocking, this part      while (defined ($freeze_line =<freeze_script>) )

while that is happening MainLoop is stuck

This is typical of perl on windows

Re^5: Client/Server sockets with TK on Win32, tk, fileevent, and MS Windows, Re: Please suggest a non-forking way to do this (OS: windows) (solution)

The OP should be using modules to organize his code ... or if he really wants to stick with capturing the output of other scripts he should use threads

  • Comment on Re^2: Perl tk gui freezes after pop up list is launched. (readline)
  • Download Code

Replies are listed 'Best First'.
Re^3: Perl tk gui freezes after pop up list is launched. (readline)
by kcott (Archbishop) on Nov 30, 2015 at 00:35 UTC

    I wasn't aware of that OS-specific issue. Thanks for the heads-up.

    Using modules, instead of piping output from another GUI, was my first thought. My intent was to identify the issue and (hopefully) provide a better solution. Being unable to reproduce the problem rather put paid to that plan.

    — Ken