in reply to Running a threaded Tk script on Windows

You failed mention which version of Perl you were using on Win32 ?

FYI: This is one of the issues I'm trying to address w/ Thread::Apartment (see also Apartment Threading in Perl), if I ever manage to get the proxied closure business figured out...

Also, does this tool have the ability to display just specific categories of programs (in my case, sports ?) I've been dealing with various online tvguides for that purpose over the years w/ limited success.

  • Comment on Re: Running a threaded Tk script on Windows

Replies are listed 'Best First'.
Re^2: Running a threaded Tk script on Windows
by zentara (Cardinal) on Sep 16, 2005 at 18:07 UTC
    I was using ActiveState 5.8.6.811 on WindowsME. I just downloaded ActiveState 5.8.7.813 and will try it out. I'll let you know if I have any successs.

    The whole reason I used threads was that win32 has all sorts of problems with fileevent and IPC::Open3, and I "thought" threads would make it easier to get to run on win32. I was wrong. :-)


    I'm not really a human, but I play one on earth. flash japh
      I've actually had better threads success w/ 5.8.6 on Win32 (XP to be precise); 5.8.7 occasionally throws some odd errors out of threads::shared. At least, thats been the case while testing DBIx::Threaded, Thread::Queue::Duplex, and Thread::Apartment.

      As an independent test of a similar environment, you might want to try installing DBIx::Threaded and testing with DBD::SQLite, as it has many of the same issues as Perl/Tk (ie, lots of XS code, not threadsafe, but can be run inside its own thread). If it coughs, it might be a problem with your configuration or WinME (I've never used the latter w/ Perl threads, only WinXP or 2K).

Re^2: Running a threaded Tk script on Windows
by zentara (Cardinal) on Sep 16, 2005 at 19:36 UTC
    Hi again, i did get my basic thread model to finally run on windows, the code is below. My tvguide code still fails, but I really don't think it's Tk. It must be something else, and I guess I will have to manually rebuild the entire code from scratch on windows, testing at each step, to see what causes it to fail. It looks like I can get it to work, with an afternoon of fiddling with it. :-)

    I'm not really a human, but I play one on earth. flash japh