[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Re: Tray Showing for OpenVPN GUI Problem


  • Subject: Re: [Openvpn-users] Re: Tray Showing for OpenVPN GUI Problem
  • From: Lonnie Cumberland <lonnie@xxxxxxxxxxx>
  • Date: Thu, 08 Sep 2005 16:42:47 -0500

Sounds like that might do the trick.....

I guess that having a command-line switch to kill any running instances of OpenVPN GUI is really not the best solution, but it might be something to consider for special situations.

maybe something like:

openvpngui.exe --restart
or
openvpngui.exe -- stop

just my 2 cents worth though and your solution sounds much better.

Thanks,
Lonnie

Mathias Sundman wrote:

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.


We will try the debug version, it might take a few days though :-(


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



____________________________________________
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/msg00095.html on line 220

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/msg00095.html on line 220