Quantcast
Channel: BeginInvoke / BackGround Worker?
Browsing all 13 articles
Browse latest View live

BeginInvoke / BackGround Worker?

I appreciate all the help. I dont mind if they are merged.

View Article



BeginInvoke / BackGround Worker?

I see this thread is the same as the other one you have going, so perhaps a mod can merge the threads? If not, let's keep this all in one thread, perhaps the other one?...

View Article

BeginInvoke / BackGround Worker?

That's why I called it "MethodThatMustRunOnTheUIThread". It's exactly that, the code that blocks the UI thread while it updates. The long running code (infinite loop as you call it) should run inside...

View Article

BeginInvoke / BackGround Worker?

No matter. I just used AddressOf instead of Sub()This works for single-actions contained in MethodThatMustRunOnTheUIThreadbut it freezes the program when an infinite while loop is put inside...

View Article

BeginInvoke / BackGround Worker?

Hi, Thanks for the example. Theres just one thing that the editor is saying is wrong:The "sub" in:   Dim methodCall As Action = Sub() MethodThatMustRunOnTheUIThread()Should it be something else?

View Article


BeginInvoke / BackGround Worker?

I had to scratch my brain a bit to try remember VB (been a loooong time since I coded in VB), but I put together a very simple example WPF form: Imports System.Threading Class MainWindow    Public Sub...

View Article

BeginInvoke / BackGround Worker?

Unfoirtunately I am not versed in C# and translating it online gives:Application.Current.Dispatcher.BeginInvoke(DirectCast(Function() Do End Function, Action), DispatcherPriority.Normal)Which isnt...

View Article

BeginInvoke / BackGround Worker?

I just answered this here: http://social.msdn.microsoft.com/Forums/en-GB/wpf/thread/99afa827-d7e4-42ee-9be9-7ef125cdf5fbFrom the background thread, you can dispatch the call back onto the UI...

View Article


BeginInvoke / BackGround Worker?

I also have a problem with the timer. It runs fine untile the change is made to the Viewport:The calling thread cannot access this object because a different thread owns it. 

View Article


BeginInvoke / BackGround Worker?

If I use the background worker to run a method that starts a thread as follows:        Dim thread As New System.Threading.Thread(AddressOf UpdateX)        thread.Start()then the application freezes.If...

View Article

BeginInvoke / BackGround Worker?

Thanks Reed. That made things much clearer. I will leave the question unanswered until I successfully implement your suggestions. Hope thats ok with you.

View Article

BeginInvoke / BackGround Worker?

There is no safe way to have an infinite loop that changes the user interface, without blocking the UI. You have a few options: 1) Setup a timer, and run your logic in a timer. This allows the...

View Article

BeginInvoke / BackGround Worker?

Which one should be used to run a infinite loop that makes changes on a Viewport3D?If so - then how may I avoid the problems outlined below?If I use BeginInvoke to run a thread for an infinite loop...

View Article

Browsing all 13 articles
Browse latest View live




Latest Images