Sorry for the delay, but it's been hectic at work this week. I've attached (an image of) the error message. Sure enough, a 'dump' of the main window object shows that the timers don't get registered for some reason:
bless({
# tied Win32::GUI::Window
"-accel" => 41_681_429,
"-font" => -334_885_755,
"-handle" => 2_032_212,
"-minheight" => 595,
"-minwidth" => 850,
"-name" => "mw",
"-timers" => {},
"-type" => 0,
etc.
There's nothing strange about the declaration of the timers:
$mw->AddTimer("tmList",100000);
$mw->tmList->Kill();
$mw->AddTimer("tmLoop",100000);
$mw->tmLoop->Kill();
etc.
The same script runs with no problem on 1.01_01. There, the dump shows:
bless({
# tied Win32::GUI::Window
"-accel" => 25_036_785,
"-font" => "-1626733967",
"-handle" => 6_358_280,
"-minheight" => 595,
"-minwidth" => 850,
"-name" => "mw",
"-timers" => {
1 => "tmList",
2 => "tmLoop",
3 => "tmStatus",
4 => "tmYearVerify",
5 => "tmTrackVerify",
6 => "tmGenreVerify",
},
"-type" => 0,
etc.
I'll keep trying to narrow it down and will post back if I do.
Glenn
------------------- reply ---------------
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Subject: RE: [perl-win32-gui-users] Next Release soon
> Date: 2005-10-19 15:40:09
> ----------------------------------
> [EMAIL PROTECTED] wrote:
> > hit another more worrying problem: I have a large-ish program, which
> > uses a number of timers. With 1.02_02 I get an error whenever any one
> > of the timers tries to fire (Can't locate auto/tmList.al in @INC...).
> > I tried to replicate this in a smaller program, but was unable to; a
> > simple program with a timer works fine. It's quite possible that my
> > program has a flaw, of which 1.01_01 is more tolerant, but there may
> > be a problem in the new GUI code.
>
> That is indeed worrying. There have been some minor changes to the
> timer code that Reini made when he put his tests together, but I can't
> immediately see anything that would cause this.
>
> Typically when I see errors like that it turns out to be a mis-spelled
> method call or window name, but if that was the case I would expect it
> to fail in 1.01_01 too.
>
> If you can't get a short example to exhibit this problem, can you post
> the exact error message that you're getting.
>
> Rob.
> --
> Robert May
> Win32::GUI, a perl extension for native Win32 applications
> http://perl-win32-gui.sourceforge.net/
>
Timer.png
Description: Binary data

