Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » trayicon and shutdown
Re: trayicon and shutdown [message #5572 is a reply to message #5571] Wed, 04 October 2006 10:19 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
atmks wrote on Wed, 04 October 2006 02:40

hi
i have small problem with trayicon example,
when trayicon (or eyecare) is running and i want shutdown
a computer, windows shows a window with message:

  ____________________________________
 |End program - trayicon.exe
 |------------------------------------
 |
 | progress bar
 | ######################
 |
 | If you choose to end program.....
 |                   ---------
 |                  | End now |
 |                   ---------
 |____________________________________

and 2nd message in same window

This program not responding


how can i resolv this?

bye
atmks



Actually, recently I have encountered similiar problem with TheIDE as well. Maybe something is broken with shutdown/exit code (and it is not TrayIcon related).

Just to explain, shutdown/exit code is montrous U++ implementation feature that forces regular exit of U++ application through GUI_APP_MAIN in case of system shutdown. The problem is that Win32 simply posts a message to application, but then quits it immediately, which is a little bit problematic as you are in the WindowProc at the moment - rest of GUI_APP_MAIN is not performed in that case.

U++ therefore starts "overwatch thread" at the start of Win32 GUI app. This thread opens single off-screen window and its purpose is to keep U++ application "alive" until GUI_APP_MAIN finishes.

This extremely fragile code starts at line 82 of CtrlCore/Win32Wnd.cpp. I will look into it ASAP, but maybe you will notice some problem there too....

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: StateH(OPEN) call missing in Linux
Next Topic: Problem with SetTimeCallback in TrayIcon
Goto Forum:
  


Current Time: Sat May 11 14:29:24 CEST 2024

Total time taken to generate the page: 0.03092 seconds