[Mono-winforms-list] Threading problem?

2010-11-27 Thread macusr74

Hi guys,

We are trying our existing .net app with Mono 2.8.1 in MAC OS 10.6.2, and so
far we only have one problem. It's related to calling Invoke from a
threadpool thread.

The first thing this app does is showing a splash window (a form). Within
this form, we queue the actual initialization process
(ThreadPool.QueueUserWorkItem) so that it is executed in the background. We
do show progress by updating the text of a label control by calling the
form's Invoke method (Invoke(new MethodInvoker(updateProgress))).

The problem is that we see the text being updated the first time, but the
process gets blocked until the mouse is moved over the splash window, then
things continue to work until the next call to the form's Invoke. For some
reason, moving the mouse over the splash window gets the thread out of that
blocked state.

So, it seems that every time the background thread calls the form's
Invoke/BeginInvoke with the appropriate parameters, the thread blocks.

Any idea on what could be wrong, and how to address that? The same code
works fine in Windows, and Linux.

Thanks!

-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Threading-problem-tp3059476p3059476.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


[Mono-winforms-list] Threading problem

2005-08-04 Thread Paul
Hi,

Is there currently a problem with threading and winforms? If I run an
app which uses System.Threading and winforms, I get the following when I
quit

XIO :  fatal IO error 9 (Bad file descriptor on X server gibberish -
literally!
   after 34932 requests (34923 known processed) with 0 events
remaining.

Is this a known problem?

Using FC4 (rawhide) with mono (checked out from the developer branch at
16:00 British Summer time and compiled with make distclean via my
script)

TTFN

Paul
-- 
Some people will do anything for a woman in uniform - The Doctor -
Unregenerate (Big Finish audio)


signature.asc
Description: This is a digitally signed message part
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Threading problem

2005-08-04 Thread Paul
Hi Peter,

 As you may have noticed by now, shutdown is not yet clean. Goes along the 
 lines of the bug you filed about memory stuff on shutdown. Since it's 
 shutdown and the app is done it's not highest on our priority list. It's 
 mostly related to order of window destruction and explicit vs. implicit 
 window destruction.

Wasn't sure, so I thought I'd mention it here first. Thanks for the
heads up.

TTFN

Paul
-- 
Some people will do anything for a woman in uniform - The Doctor -
Unregenerate (Big Finish audio)


signature.asc
Description: This is a digitally signed message part
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Threading problem

2005-08-04 Thread Miguel de Icaza
Hello,

 Is there currently a problem with threading and winforms? If I run an
 app which uses System.Threading and winforms, I get the following when I
 quit

Winforms is not a multithreaded toolkit.

You must use Control.Invoke to perform Winform calls from a different
thread.
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list