So just a heads-up: if you get "bugs" when testing under a VM, maybe quit and restart the VM to see if the "bug" persists.
Original report was as follows:
Just tried one of my apps on Win 10 and it fails to add a systray icon. Below is the relevant code which is causing the failure.
As you can see, it's failing because the "systrayicon" variable is always 0, but that only happens on Win 10 -- it's always non-zero on XP and 7 and therefore works on those versions.
So it seems to be a Win 10-specific bug?
Code: Select all
systrayicon=AddSysTrayIcon(0,app,Catch_Img_App)
Debug app ; Non-zero
Debug Catch_Img_App ; Non-zero
Debug systrayicon ; Always 0 on Win 10, but never on XP or 7
If systrayicon=0
StartFailure() ; App calls this procedure on Win 10, which quits the app.
Else
SetSystrayTip()
EndIf