Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am not even sure how to ask this question. I wrote a perl application consisting of 25 modules. There is one 'main' module and 24 sub-modules. Each has their own window. I originally wrote this under Windows 2000. A couple weeks ago, I received a new pc running WinXP. I reinstalled perl 5.8 and the various components I was using previously. Everything seemed to install correctly.

However, when I select a certain sub-routines the system seems to hang.

I stepped though the programs using the debugger and it would hang on statements such as

$mb = $mw->Toplevel(-relief => 'flat', -bd => 2); my $titleframe = $mb->Frame();

However, if I step into it and then continue to step into functions, eventually control returns to the next statement in my perl module. What is even more strange is that it only happens to some of the sub-module displays, not all of them.

Now this system was running correctly on Win2000. Is it possible that there are some kind of incompatibilities between perl running on Win2000 and WinXP?

Your help is greatly appreciated. Thank you.

Gerry

Replies are listed 'Best First'.
Re: Porting from Win2K -> WinXP Problems
by jdtoronto (Prior) on Sep 14, 2006 at 19:39 UTC
    Doesn't really help us. Can you give us a small block of code that fails in your environment so that we can try it in ours?

    • What Perl did you use on W2K?
    • What Tk did you use?
    • What Perl and Tk are you using now?

    jdtoronto

Re: Porting from Win2K -> WinXP Problems
by RMGir (Prior) on Sep 14, 2006 at 19:21 UTC
    Gerry,

    I'm not sure, but your best bet is to start by downloading the latest PerlTk build you can get your hands on, either the source package and building it yourself, or the latest PPM file if there's one available.

    Other than that, all I can think of is make sure you're at the latest ActivePerl release, and if that doesn't work, go back to OLDER ActivePerl releases, if the distro files are still available.


    Mike
Re: Porting from Win2K -> WinXP Problems
by lukeyboy1 (Beadle) on Sep 15, 2006 at 09:14 UTC
    Hi Gerry.

    The first suspect is the installation of your Tk modules, as they shouldn't hang on simple things like that. I'd suggest trying to get the latest version via PPM, if you can, and failing that, install it by hand!

    My other suggestion is to try a very simple Perl::Tk program, and see if that has the same issues. If it does, then it's likely to be the version of Tk that you've got!

    Hope this helps....