English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 04 June 2016, 14:06   #1
BlankVector
Registered User
 
Join Date: Jun 2012
Location: Paris, France
Posts: 148
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.
BlankVector is offline  
AdSense AdSense  
Old 04 June 2016, 14:17   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,543
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.
Toni Wilen is offline  
Old 04 June 2016, 14:42   #3
BlankVector
Registered User
 
Join Date: Jun 2012
Location: Paris, France
Posts: 148
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
I have tested the above, it works fine.

2) Using the low level SetConsoleCtrlHandler() to catch CTRL_BREAK_EVENT (untested).
BlankVector is offline  
Old 04 June 2016, 14:54   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,543
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.
Toni Wilen is offline  
Old 11 December 2016, 23:04   #5
BlankVector
Registered User
 
Join Date: Jun 2012
Location: Paris, France
Posts: 148
I found a workaround:
Settings > Host > Miscellaneous > Don't show notification icon

Problem solved. I'm very happy with that
BlankVector is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:46.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.10972 seconds with 11 queries