in reply to ActivePerl Gtk2::Helper Hangs

I think the problem is in the Gtk2::Helper->add_watch

For me (on Windows), when I run your script, there's no problem until the Gtk2->main(); is executed (at the last line of your script).

I don't know if that rules out the possibility that the problem is where you said it is ...

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: ActivePerl Gtk2::Helper Hangs
by syphilis (Archbishop) on Nov 27, 2013 at 12:51 UTC
    I don't know if that rules out the possibility that the problem is where you said it is ...

    Aaaah ... hang on ... in the Glib-1.301/t/9.t test script we find:
    } elsif ($^O eq "MSWin32") { print "ok 12 # skip add_watch on win32\n"; print "ok 13 # skip add_watch on win32\n"; print "ok 14 # skip add_watch on win32\n"; }
    This would suggest that add_watch() doesn't work on Windows, and you need to replace it with other code.
    The Gtk2 developers probably have a good idea of what's needed, if no-one here comes forward with a solution.

    Cheers,
    Rob
      Hi Syphilis,

      Can you recommend an alternative code? Other way of reading the output of the cmd.exe

      Thanks in Advance! :)
      Mabuhay Civil Engineers! :D