|
|
On Wed, 7 Sep 2005, Erich Titl wrote: Please try the debug version and let me know the output of the log file if the icon disappears. I've almost solved the problem now thanks to Marcus who has reported this problem on the web forum and tested the debug version. For some reason the call to Shell_NotifyIcon() used to register the icon with the Taskbar/Shell/Explorer fails during logon when OpenVPN GUI is started from the "Run" reg-key on some systems. The last_error message Shell_NotifyIcon() returns is: This operation returned because the timeout period expired. In my latest debug version [*] I made OpenVPN GUI re-attempt to register the icon up to five times with a second delay in between and Marcus says that this version always works for him, usually on 2:nd or 3:de attempt. The only explaination I can see is that explorer.exe simply hasn't initialized itself compleatly at the time OpenVPN GUI is started and that's why it can't handle the Shell_NotifyIcon() within reasonable time. Unless anybody can come up with any other explaination / solution, I'll simply solve this by making OpenVPN GUI re-attempt registring the icon up to 10 times with a second delay. If it still fails, I'll show an error dialog and terminate. Any objections? Cheers - Mathias -- _____________________________________________________________ Mathias Sundman (^) ASCII Ribbon Campaign OpenVPN GUI for Windows X NO HTML/RTF in e-mail http://openvpn.se/ / \ NO Word docs in e-mail ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-09/msg00094.html on line 207 Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-09/msg00094.html on line 207 |