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 » Freezing bare application on Windows XP
Re: Freezing bare application on Windows XP [message #24099 is a reply to message #24097] Sat, 26 December 2009 21:40 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Well, first partial finding:

The cause of crashing for GetSysTime is really stupid - in single threaded mode, you cannot call any U++ routine in non-main thread and ELOG does exactly that.... (in OverWatchThread).

Note: Otherwise, OverWatchThread is carefully designed not to call anything that would have this problem - it only calls win32 API which is MT safe.

BTW, have you tried this app with MT flag (it would fix GetSysTime problem).

(I have reproduced GetSysTime problem, but nothing else so far).

If you are getting consistent crashes, maybe one thing to try is to replace Event with Semaphore (or StaticSemaphore)... (Just replace Set with Release....).

BTW, you have not posted details of your compiler / system yet...

(I am trying to reproduce the problem in WinXP with MSC9).

Mirek

[Updated on: Sat, 26 December 2009 21:42]

Report message to a moderator

 
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
Read Message
Read Message
Read Message
Previous Topic: PromptOK & C, with topmost
Next Topic: Balloon-like window
Goto Forum:
  


Current Time: Sun Aug 24 05:48:30 CEST 2025

Total time taken to generate the page: 0.03186 seconds