#73 ShowBalloon use of unitialized variable

closed-rejected
None
1
2007-08-08
2007-08-08
Anonymous
No

Extending the example in the tutorial regarding system tray icons to show balloon messages fails with:

Use of uninitialized variable in subroutine entry at C:/Perl/site/lib/Win32/GUI.pm line 2842

I extended the tutorial to recreate the error I was getting with another script. Oddly, the NotifyIcon.pl (Notify Icon Tester) works as it should.

Version Info:
Win32::GUI 1.05 (dl and install from sourceforge)
shell32.dll 6.0.2900
Notify Icon Tester 1.01

Not sure if it's the deprecated ID or Window attributes that may be missing. Obviously, you need to adjust my test.pl to reference an existing ico file.

In my other script, $Window->ShowBalloon(0) does not complain, but the very next line $Window->ShowBalloon(1) does.

Let me know what information or testing may help solve this one.

Jim

Discussion

  • Nobody/Anonymous

     
    Attachments
  • Robert May

    Robert May - 2007-08-08
    • priority: 5 --> 1
    • assigned_to: nobody --> robertemay
    • status: open --> closed-rejected
     
  • Robert May

    Robert May - 2007-08-08

    Logged In: YES
    user_id=674651
    Originator: NO

    That'll be because the option you want to be using is '-balloon_tip' and not '-balloon_text'. As a result of this error '-balloon_tip' ends up undefined.

    Regards,
    Rob.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks