U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TopWindow&PopUp, TrayIcon » Freezing bare application on Windows XP
Re: Freezing bare application on Windows XP [message #24107 is a reply to message #24104] Sun, 27 December 2009 00:27 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
qapko wrote on Sat, 26 December 2009 16:58

After the testing I hope it's OK now. And again, thank you for your help. I highly appreciate your attention.
Just two more questions:
1. Can this concrete bug be cause of those strange freezings of our application at the customer site while the application is running (just not after the start)?



Unlikely. This is a very specific race condition that happens only during first call of GuiSleep. You must be very lucky that your machine and OS and everything else actually match requirements to trigger this issue...

But it nicely demonstrates what is so hard about MT Smile

Quote:


2. Can you please take a look and find, whether the issue with GLOBAL_VAR may not cause similar problems (deadlocks, namely) on another places in Upp framework? I see clearly, that with my knowledge of Upp I'm not able to do that job. But I can help you with some testing of course.



Well, this is one of two places where another thread is created in single-threaded mode. Other place is much more simple.

The real problem is that GLOBAL_VAR definition differes in both modes - in ST it is made simpler, bypassing all MT stuff. Which is bug here, but OK in normal use.

Thanks for making me aware about this problem.

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: Sun Sep 13 23:58:33 GMT+2 2026

Total time taken to generate the page: 0.01012 seconds