Guys - or GUIs ;-) Xqs me for being square, but if we discuss everything under "Timer memory leak", we are giving ourselves a hard time down the road when we try to find a solution in the sourceforge archive. Especially since the search function of the archive is not exactly very successful in retrieving what you're looking for :-(
Anyway, Peter, I'm sorry to inform you that my Perl 5.6.0 with GUI 0558 does not complain about an undefined macro. I remember seing that error when I had the famous GUI version 0.99, which was actually something like 0.0.0460 or so. But I do hope you're over the version issue by now ;-) I could imagine something wrong with the $Window to begin with. If the $Window->AddCombobox call fails, it returns undef and a subsequent $Window->Category would have to fail. However, since I can use your code snippet ... do you have Category defined somewhere? Because you did not put the name in quotes, maybe Perl tries to call a sub of that name and take it's return value as name for your Combobox? Just guessing. Have fun, Harald | -----Original Message----- | From: Peter Eisengrein [mailto:[EMAIL PROTECTED] | Sent: Tuesday, June 05, 2001 10:57 | To: 'perl-win32-gui-users@lists.sourceforge.net' | Subject: RE: [perl-win32-gui-users] Win32::GUI::Timer memory leak? | | | The zip thing worked!!! That's terrific except that scripts | that used to | work no longer do. Bummer. I get this kind of an error: | | "Your vendor has not defined Win32::GUI macro Category, used | at..." (see | below snippet) | | What's this about a macro? I get what it means but can | someone point me | towards which doc describes this change in functionality? In | 0.0.558 do I | need to declare these "macros" or something? Here's a snippet | of what it is | complaining about (works with 0.0.502): | | ###### | $Window->AddCombobox( | -name => Category, | -left => 105, | -top => 5, | -width => 45, | -height => 100, | -style => WS_VISIBLE | 2 | WS_VSCROLL | WS_HSCROLL | | ES_AUTOHSCROLL, | -tabstop => 1, | ); | | $Window->Category->InsertItem(""); | foreach (@category) | { | chomp($_); | $Window->Category->InsertItem("$_"); | } | | ##### | | | THanks for everyone's help. | Pete | | | | > -----Original Message----- | > From: Frazier, Joe Jr [mailto:[EMAIL PROTECTED] | > | > | > http://www.activestate.com/PPMPackages/zips/6xx-builds-only/wi | > n32-gui.zi | > p. THIS contains the ppd file for install. | > 1) unzip | > 2) cd to foldery where you unziped files | > 3) type "ppm install Win32-GUI.ppd" | > | > | | _______________________________________________ | Perl-Win32-GUI-Users mailing list | Perl-Win32-GUI-Users@lists.sourceforge.net | http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |