[Mono-dev] Threads sleeping forever

Tom Spink tspink at gmail.com
Tue Jul 5 11:42:53 EDT 2011


On 5 July 2011 16:28, Darkiwi <pitikiwi_001 at hotmail.com> wrote:

> @Tom:
> Yes, as my test is running, it updates the UI. The events are sent into a
> fifo which is depiled in the main thread's Application.Idle to avoid invoke
> problems.
> If I remember well, I also tried commenting this but it did not solve my
> problem :-(
> I will run this test again, just to be sure.
>

Interesting - is it a lot of updates you're doing, via Application.Idle?
 You might consider reworking your updates to using BeginInvoke and/or
Invoke to see if it's a problem with your Application.Idle approach.

Of course, if you disable any updating of the UI and you're still in
trouble, then it's unlikely that it's a problem with your UI update
marshalling code.

However, thinking about what you've said - how are you synchronising the UI
update queue?  You said you're pushing events into a FIFO - how is that FIFO
producer synchronised, WRT the Application.Idle consumer?

-- Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110705/8718dfdf/attachment.html 


More information about the Mono-devel-list mailing list