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

Hi,

I've created a windows base bot program using win32::gui, threads, win32::GUI::threadutils and subs::parallel. Manage to make it work perfectly on my Notebook with Atom processor. Have distributed to some of my existing clients but, not all manage to run it perfectly. Some got error. I did some trouble shootings on those PCs and more or less found the area that populating those problems. And it is the threading part. Have tried several changes but I still failed to make it work. It will every time, pops-up window error and shut down.

So my question is, is it because the notebook that I use to compile this may have made it unstable for some PC to run. Becasue I just can't find what other reason it might be.. Please help.

ps: I've even disabled the antivirus on those PCs, just thought that it might be the reason, but still no luck :(
pss: I can't test the script on my clients pc because of security reasons. I can only test the compiled version. Otherwise it would have be much easier

  • Comment on Win32::GUI threads program doesn't work in some PC

Replies are listed 'Best First'.
Re: Win32::GUI threads program doesn't work in some PC
by BrowserUk (Patriarch) on Feb 18, 2010 at 06:24 UTC

    Given that Win32::GUI::ThreadUtils is not available on CPAN and listed as "highly experiemental", you'd best be talking to the author.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re: Win32::GUI threads program doesn't work in some PC
by cdarke (Prior) on Feb 18, 2010 at 09:13 UTC
    pops-up window error

    Are we expected to guess what the error message was?

    Find out the differences between the PCs that it works on and those that it fails on. Service Pack perhaps?

    I have to say that a notebook with an Atom processor might be a neat machine but is hardly representative for a test platform. You need a test machine which is setup in the same way as your client's systems with similar hardware.
Re: Win32::GUI threads program doesn't work in some PC
by azlan (Initiate) on Feb 18, 2010 at 11:06 UTC
    Thanks for your opinion guys. I finally figure out the problem. It was my notebook that is not showing the error message, probably it's a fast machine and just by passing this tiny error. I tested on quite an old PC at the Internet cafe nearby, running on probably the 1st version of Pentium 4 with 512MB memory. It clearly showed the error message that I could understand and finally fix it. It was because the compiled script (it was compiled using Perl2Exe BTW) is loading unknown library auto/NOTIFYICON.al. I don't know what that is for, but after disabling it, the problem solved. This is what I inserted in:
    #perl2exe_exclude "auto/NOTIFYICON.al"
Re: Win32::GUI threads program doesn't work in some PC
by desemondo (Hermit) on Feb 18, 2010 at 10:44 UTC
    pss: I can't test the script on my clients pc because of security reasons.

    If you are using a simplistic perl2exe type compiler be warned that it does not give you real security...
Re: Win32::GUI threads program doesn't work in some PC
by Anonymous Monk on Feb 18, 2010 at 04:39 UTC
    Program? PC? Error?