![]() |
![]() |
#1 |
Registered User
Join Date: Jun 2012
Location: France
Posts: 183
|
Tray icon stays after closing log window
When winuae.exe is started with -log, it opens an additional log window, that's fine. But when WinUAE is exited by closing that log window, the system tray icon stays (at least on Windows XP). This is a bug (even if not a big one).
As usual in such case, moving the mouse on the dead icon makes it disappear. |
![]() |
![]() |
#2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
It is not a bug. Closing console (or pressing ctrl+c) more or less equals killing winuae with task manager (and it stays that way, log console is debugging option only, nothing is guaranteed).
For some annoying reason Windows won't clean up those icons automatically if program ends abnormally. |
![]() |
![]() |
#3 |
Registered User
Join Date: Jun 2012
Location: France
Posts: 183
|
It is possible to handle such exit event.
1) With signal(): Code:
#include <signal.h> void __cdecl myhandler(int sig) { printf("Good bye\n"); } ... signal(SIGINT, myhandler); // Ctrl+C signal(SIGBREAK, myhandler); // Close console 2) Using the low level SetConsoleCtrlHandler() to catch CTRL_BREAK_EVENT (untested). |
![]() |
![]() |
#4 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
Yes but I don't want it. I want ctrl+c to kill it instantly.
EDIT: I guess I can change it in release versions. Last edited by Toni Wilen; 04 June 2016 at 17:05. |
![]() |
![]() |
#5 |
Registered User
Join Date: Jun 2012
Location: France
Posts: 183
|
I found a workaround:
Settings > Host > Miscellaneous > Don't show notification icon Problem solved. I'm very happy with that ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Closing current Shell window programmatically? | tygre | Coders. General | 5 | 06 September 2015 06:24 |
FS-UAE Launcher window resizing & closing | Emu | support.FS-UAE | 2 | 14 April 2015 10:24 |
Closing a window with shared Messageport? | AGS | Coders. System | 0 | 18 March 2015 15:05 |
Right click on WinUAE tray icon pauses emulation | smoorke | support.WinUAE | 1 | 20 September 2008 16:25 |
|
|