I've written a number of small PerlTray applications which generally behave themselves, but occasionally I see random errors like:
1. Right click on the tray icon and it exits silently (with no error - these are redirected to MsgBox's so would be visible) instead of popping a menu.
2. Right click on the tray icon and random elements are added into the menu (array references, garbled text, etc).
3. Sometimes when running the application I'll get a random "modification of scalar value expected" or similar message appear. Run the App again and it won't happen...?
I've been working on the assumption that something about the way PerlTray organises the running code and the background functions that it has to perform can occasionally cause in memory corruption (because of the way events are being concurrently handled or something similar?)
Does anyone else see problems like this? Is there any advice that anyone can give me to try and avoid this happening?
Julian