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
34
votes
5 answers

How to return a value with Dispatcher.Invoke?

Anyone knows how to return a value from Dispatcher.Invoke in wpf? I want to return the selected index for a ComboBox. Thanks!
toni
  • 381
  • 1
  • 3
  • 4
33
votes
2 answers

WPF BackgroundWorker vs. Dispatcher

In my WPF application I need to do an async-operation then I need to update the GUI. And this thing I have to do many times in different moment with different oparations. I know two ways to do this: Dispatcher and BackgroundWorker. Because when I…
lamarmora
  • 1,116
  • 4
  • 16
  • 32
33
votes
1 answer

What are the default Akka dispatcher configuration values?

In the Akka documentation it states that if a dispatcher is not configured a default dispatcher will be used. What are the properties of the default dispatcher i.e parallelism-min, parallelism-factor, parallelism-max etc. ?
Tsume
  • 907
  • 2
  • 11
  • 21
30
votes
2 answers

No WebApplicationContext found: no ContextLoaderListener registered?

I'm trying to create a simple Spring 3 application and have the following files. Please tell me the reason for this error Below is my web.xml
Batman
  • 908
  • 4
  • 15
  • 32
30
votes
1 answer

XAML bind BitmapImage ViewModel property

I have problem with update listbox from view model class. I use Caliburn Micro framework. My scenario is here: I bind property of type bindableCollection on listbox: Code from view model: private BindableCollection _friends; public…
user572844
28
votes
3 answers

Using the C# Dispatcher in WPF Applications

I'm building a chat client and am not 100% sure on how to use the dispatcher. So the question is I have a method as such: public void LostConnection() { myGUI.chatBox.AppendText("Lost connection to room: "+ myGUI.UsernameText.ToString() +…
Tombo890
  • 371
  • 1
  • 3
  • 11
26
votes
2 answers

What is bulkheading in computer science?

I'm reading up on dispatchers in Akka, and I learnt that its used for bulkheading purposes. What is bulkheading in computer science?
nadia
  • 393
  • 4
  • 7
25
votes
3 answers

Dispatcher to Thread relationships in WPF

It is not entirely clear to me how many Dispatchers there are in an application and how they are related to, or referenced from Threads. As I understand it, a WPF application has 2 threads (one for input, the other for UI) and 1 dispatcher…
j00hi
  • 5,420
  • 3
  • 45
  • 82
25
votes
1 answer

Can't use dispatcher on WP7

I was looking around for refrences using dispatcher to call code on the UI thread and they say to do this: Dispatcher.BeginInvoke(() => {OnSendSuccessful(); }); But I get a compiler error saying I cant access non-static method BeginInvoke in a…
deanvmc
  • 5,957
  • 6
  • 38
  • 68
25
votes
2 answers

Understanding the Silverlight Dispatcher

I had a Invalid Cross Thread access issue, but a little research and I managed to fix it by using the Dispatcher. Now in my app I have objects with lazy loading. I'd make an Async call using WCF and as usual I use the Dispatcher to update my objects…
Matt
  • 6,264
  • 10
  • 54
  • 82
24
votes
1 answer

Error in C#: "An object reference is required for the non-static field, method, or property"

I wrote code in WPF. Firstly, I wrote a separate project to test work with a COM port device, and it worked well. Next I decided to integrate it in another project, but I get an error. I didn't change the code; I am just copied it into a new code…
Yury Kerbitskov
  • 643
  • 1
  • 7
  • 21
24
votes
1 answer

Akka :: dispatcher [%name%] not configured, using default-dispatcher

I created the followind application.conf: akka { actor { prio-dispatcher { type = "Dispatcher" mailbox-type = "my.package.PrioritizedMailbox" } } } when dumping configuration with actorSystem =…
jdevelop
  • 12,176
  • 10
  • 56
  • 112
23
votes
3 answers

What is the use of a Dispatcher Object in WPF?

What is the use of a Dispatcher Object in WPF?
mrbradleyt
  • 2,312
  • 7
  • 33
  • 38
22
votes
7 answers

WPF Dispatcher.Invoke 'hanging'

I have a somewhat complex WPF application which seems to be 'hanging' or getting stuck in a Wait call when trying to use the dispatcher to invoke a call on the UI thread. The general process is: Handle the click event on a button Create a new…
Matthew Savage
  • 3,794
  • 10
  • 43
  • 53
22
votes
2 answers

Understanding the WPF Dispatcher.BeginInvoke

I was under the impression that the dispatcher will follow the priority of the operations queued it and execute the operations based on the priority or the order in which the operation was added to the queue(if same priority) until I was told that…
Vignesh.N
  • 2,618
  • 2
  • 25
  • 33
1
2
3
86 87