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 #24101 is a reply to message #24099] Sat, 26 December 2009 21:53 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
Thinking about it...

First of all, sorry about StaticSemaphore suggestion - that cannot work in single-threaded mode.

Which brings us to the possible reason anyway - maybe the problem is

GLOBAL_VAR(Event, Ctrl::ExitLoopEvent)

because just like anything else, in single-threaded, the GLOBAL_VAR does not provide thread protection. In other words, it can lead to the problem when two threads initialize Event twice and then work with different Event handle.

Fix is simple, use

Event Ctrl::ExitLoopEvent;

instead (change from function call to class static variable).

Can you try that please?

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


Current Time: Tue Jul 08 23:00:12 CEST 2025

Total time taken to generate the page: 0.03268 seconds