is Win32::GUI thread safe?

I've been working on a script for a little while now
It's a program that will periodically log me into my campus's content filtering device (Barracuda). Of course, it makes sense to implement some sort of timeout handling, just in case I lose the net connection or happen to have my laptop somewhere else.

Here's the problem: the script keeps crashing with the following message:

Free to wrong pool 3d9b108 not 1981c78 at C:/Perl/site/lib/Win32/ line 3480 during global destruction.

the crazy thing is, no GUI element is changed during the spot where I split into threads and then re-join into one. through the use of print statements, I've narrowed it down to the statement where I join a thread.

(2 threads: 1 timer, 1 do-er; if the timer is ready but the do-er isn't, then kill it)

and it happens no matter which thread is joined!

I've tested all the net stuff without the GUI (but using threads) and it works fine. So, that leads me to think Win32::GUI is not thread safe, and the mere presence of any of the different GUI objects is causing my problem.

Google has only revealed very old information and other dead ends. Help!

Relevant Pages

  • Re: Possible bug in Exchange GUI (Exchange System Manager.msc)
    ... Connection settings for SMTP server. ... Script that I used for changing settings and reading them ... And GUI ...
  • Re: how do you test GUI functionality?
    ... (CART; Classic is the name of the application). ... I have one script which tests handing off control from one GUI to ... # Returns a script to push a specified button in a GUI. ...
  • Re: GUI v Script
    ... > I maintain an old system which has a locally developed script interface. ... > faster with a CLI than a GUI, particularly if the GUI is like Windows, ... with both programming skills and subject matter knowledge. ...
  • Possible bug in Exchange GUI (Exchange System Manager.msc)
    ... I’m writing this because I think I found one small bug in Exchange GUI. ... Connection settings for SMTP server. ... Manager.msc on first server and iis.msc on second server. ... First I used script to target settings for SmtpSvc/1 ...
  • Re: Monitor GUI
    ... I currently have a simple little Perl script whose job is to listen on ... a TCL window. ... red when we've gotten an error message. ... GUI never gets created. ...