Questions tagged [dispatcher]

In WPF and Silverlight, Dispatcher is an object that is used to execute work on a specific thread. In another meaning, dispatcher defines an object that receives requests from the client and sends them to any resource (such as a servlet, HTML file, or JSP file) on the server.

In and , Dispatcher is an object that is used to execute work on a specific .

In another meaning, a dispatcher object can forward a client's request to a resource or include the resource itself in the response back to the client. A resource can be another servlet, or an HTML file, or a JSP file, etc.

1296 questions
-1
votes
1 answer

What is a multi-rate non preemptive OS?

I have this question related to embedded systems, this expression which i found in a source file of a dispatcher: What is a multi-rate non preemptive OS / Dispatcher ? I know a little about dispatcher , non-preemptive systems RTOS based on my…
The Beast
  • 1,629
  • 2
  • 29
  • 42
-1
votes
3 answers

Dispatcher.BeginInvoke() not running asynchronously

Here's a simplified version of what I want to do: onClick a button, a aNewMethod() would run asynchronously to keep UI responsive. That's it! I've read some answers and here's what i could come up with : private async void button_Click(object…
BaSsGaz
  • 666
  • 1
  • 18
  • 31
-1
votes
1 answer

Using INotifyPropertyChanged and Dispatcher to update view

I'm trying to get at progress bar to update based on how many times a loop have been executed. The loop is running in it's own thread. I'm under the impression that Dispatcher.BeginInvoke is a good choice and implemented it. I've also read that the…
Anders
  • 499
  • 1
  • 5
  • 18
-1
votes
1 answer

Edit GUI while main thread is stuck in a while loop (or Task.WaitAll)

So after a long time of cursing and giving up hope I got everything to work (almost). I have a GUI which displays a list of connected addresses and a list of messages. Normally when I close a connector (disconnect from an address) I write a message…
Vincent
  • 1,497
  • 1
  • 21
  • 44
-1
votes
1 answer

RelayCommand not fired when set with BeginInvoke

I have a simple application that has an ObservableCollection collection bound to UniformGrid. If I use: Items.Add(new Item { ID = i.ToString(), Name = i.ToString(), TestCommand = new…
A191919
  • 3,422
  • 7
  • 49
  • 93
-1
votes
2 answers

Django error 'Signal' object has no attribute 'save'

I've been struggling with this problem for 5 hours and I have a feeling it's a simple solution that I'm just overlooking. I'm trying to tie in a third party module (Django Activity Stream) that uses a series of senders and receivers to post data…
Ben S
  • 1,407
  • 1
  • 13
  • 27
-1
votes
1 answer

Upgrade from AEM 6.0 to 6.1 Dispatcher 4.1.9 issues

We are trying to upgrade to AEM 6.1 from 6.0sp2. As Adobe suggested that we have to upgrade the Dispatcher to 4.1.9 (as mentioned here https://docs.adobe.com/docs/en/aem/6-1/release-notes.html ) On Publish instance, we did the…
Suren Konathala
  • 3,497
  • 5
  • 43
  • 73
-1
votes
1 answer

How to reproduce the behavior of Window.ShowDialog()

Short version: How do I pump for messages while at a particular stack frame so I can wait for a custom dialog to return while blocking, just like Window.ShowDialog(). Ideally avoiding async or multiple threads. I am creating a custom Notification…
Marcus10110
  • 509
  • 4
  • 12
-1
votes
2 answers

Multithreading in Windows Phone 8.1

public MainPage() { Method_1(); Method_2(); Method_3(); Method_4(); Method_5(); Method_6(); } I am writing a Windows Phone 8.1 App (WINRT XAML). How to make these methods execute at a time from constructor? What I mean to…
-1
votes
1 answer

Thread Management Object

I feel rather foolish as this is just a short question. I was reading about a bunch of thread management helper classes in .net, specifically one that aids the storage of threads to help a service manager object automatically invoke delegates onto…
Gusdor
  • 14,001
  • 2
  • 52
  • 64
-1
votes
2 answers

Alternative to InvokeRequired

I searched and got that Dispatcher CheckAccess can be used in place of InvokeRequired in wpf. This is the code want to convert in wpf private void ChangeTextBox(string txt) { if (msg_log.InvokeRequired) { Invoke(new…
Antisan
  • 63
  • 1
  • 6
-1
votes
1 answer

Adding stackpanels to a stackpanel from another thread (with dispatch?)

I've already found several topics about multithreading in wpf and got most things to work with dispatch, but there is one thing I havent figured out yet. I have a stackpanel called "stackpanel1" to which Im adding stackpanels (in another thread)…
-1
votes
2 answers

C# AutoResetEvent WaitOne stopped by dispatcher

private void WaitForDriveToBecomeReady() { AutoResetEvent syncEvent = new AutoResetEvent(false); //set wait signal to use later //dispatcher to be able to change stuff in xaml from within thread Action action1 = new Action(delegate() {…
CodingYourLife
  • 7,172
  • 5
  • 55
  • 69
-1
votes
1 answer

Deployment.Current.Dispatcher.BeginInvoke Wont do anything

I am having trouble displaying html onto a web browser. I am using the method "Deployment.Current.Dispatcher.BeginInvoke" but it wont displaying anything. What I am trying to do is getting html from a server as a string and displaying in my web…
-1
votes
1 answer

The calling thread cannot access this object because a different thread owns it.I dont want to use dispatcher

in wpf,I have a listbox control and two buttons.I want to be able to use the second button when i clicked the first button till add numbers has not fineshed his work.I use dispatcher.begininvoke but this adds the work on main thread.How to i…
jertal
  • 1
  • 1