in reply to Re: traymon.pl - Easily add a System Tray icon to an exisiting program
in thread traymon.pl - Easily add a System Tray icon to an exisiting program

I can't get it to work. I downloaded Win32::GUI from PPM, downloaded and installed carp. I created an icon for my program, and created an INI with but two entries, one for the program, and one for the Icon. When I run Traymon, it starts the target program and then dies with the "Please tell Microsoft about this problem" dialog. I thought perhaps my Icon was causing the problem, so I commented out the Set_Icon call as a test. Same result. Any clues for the clueless? Thanks
  • Comment on Re^2: traymon.pl - Easily add a System Tray icon to an exisiting program

Replies are listed 'Best First'.
Re^3: traymon.pl - Easily add a System Tray icon to an exisiting program
by Anonymous Monk on Apr 08, 2007 at 19:35 UTC

    I had the same problem as well - here's how to fix:

    Change the line reading (in sub start_gui):

    $win  = Win32::GUI::Window->new();

    to this:

    $win  = Win32::GUI::Window->new(-name=>'Main',-text=>'Perl');

    Basically, it seems that Win32::GUI::Window::new needs the name and text args, otherwise it crashes.

    Cheers! -josiah