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 » U++ Library : Other (not classified elsewhere) » PromptOK in a thread. Bug?
Re: PromptOK in a thread. Bug? [message #26759 is a reply to message #26752] Wed, 26 May 2010 13:25 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 25 May 2010 14:36

Hello whiteman

I do not remember why but Mirek advised us to use user interface only in main thread.


Actually, that has changed with GuiLock. So the only thing concerning the main thread now is the fact that you do not need to use GuiLock there Smile

Hard to say why in this case it fails. A testcase and more info about host OS would be helpful.

Also, please check whether reference/GuiLock works for you (it creates Prompts inside thread).

Thinking about it, there is one important thing to know: All GUI processing is performed in the main thread. So if you invokde PromptOK from another thred, the request is passed to the main thread to be actually executed - in a very similar way to GUI input events. So if your main thread is busy doing things (think infinite loop), Prompt request will never be processed and things will look blocked.


[Updated on: Wed, 26 May 2010 13:32]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Howto use the Updater
Next Topic: layout bug with glctrl
Goto Forum:
  


Current Time: Fri Jul 18 20:33:50 CEST 2025

Total time taken to generate the page: 0.03861 seconds