> I do not know about the character limit, however, when I first started
> playing with changing tips, I *HAD* to included the id to get it to
> work. Try changing this
>
>> $Window->NI->Modify( -tip => $tip);  # line 30
>
> to this :
>
> $Window->NI->Modify( -id => 1, -tip => "Something" ); # or whatever -id
> is set to

On my system it works with or without the -id.  I did discover that the
error is related to the string length.  If its 63 or less, no problem.  If
its 64, crash.  If its 65, error message. If its greater than 65, crash. 
So perhaps this is some kind of overflow and overwriting something else(my
c skills are out of practice)??

> I hope this helps.  I checked the web (google for "notify Icon") and
> found what a site that has the struct: 2 ) NOTIFYICONDATA structure
>
> typedef struct _NOTIFYICONDATA {
>                          DWORD cbSize;
>                          HWND hWnd;
>                          UINT uID;
>                          UINT uFlags;
>                          UINT uCallbackMessage;
>                          HICON hIcon;
>                          char szTip[64];
> } NOTIFYICONDATA, *PNOTIFYICONDATA;
>
> And yes, it appears from the last entry (char szTip[64]) that the limit
> is 64 characters (or is the 65 if you include position 0?)

At least this is a known/not unexpected limit, perhaps a note about this
should be added to the documentation.  Thanks for the help.

-- 
Nathaniel G. Bartusiak
TTMS, Keesler AFB




Reply via email to