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
0
votes
1 answer

Python dispatcher as tkinter Button command/eventlistener

In my View class I want to use pydispatcher.dispatcher send method in a tkinter Button command to signal to my Controller class in a MVC design that the button has been pressed. I do this: self.calc_button =…
Learner
  • 3
  • 2
0
votes
1 answer

Process Dispatcher Queue / Background Threads with one call

I have a WPF Application and a Login Window using a separate Thread. On my main Thread the Application is loading (PRISM Modules etc.) and reports the progress to my Login Window. When the Bootstrapper has finished the Login View will be closed and…
Johannes Wanzek
  • 2,825
  • 2
  • 29
  • 47
0
votes
1 answer

Dispatcher.BeginInvoke Method 'freezing' after second execution

I'm making a windows phone game with Unity3d and I have the need to call a method from the Unity thread asynchronously from the UI thread. This all works, however with one particular method the first execution executes as expected however after the…
Lee Brindley
  • 6,242
  • 5
  • 41
  • 62
0
votes
1 answer

Routing Cherrypy web apps(fail to road resource)

I have spent more than 4 days trying to figure out this, but my every attempt failed, so I thought I could really use some of your helps. In the code below, Storm is an app with function submit_data() which fetches data from databases according to…
Eric
  • 2,635
  • 6
  • 26
  • 66
0
votes
0 answers

want the disptacher to call a method right after eventhandler finished

I have a wpf UserControl that handles events from a ComboBox. The control subscribes to the ComboBoxes' DropdownClosed event. I'm facing the problem, that the Combobx base implementation peforms unpleasant default code, after running through the…
deafjeff
  • 754
  • 7
  • 25
0
votes
1 answer

WPF - Binding and Dispatcher

I fail to update a PolyLine for a WorkerThread via a Binding by updating the Source from the Dispatcher. It only works when I update the PolyLine.Points PointCollectionfrom the WorkerThread, but It does not If I bind Polyline.Points to another…
0
votes
1 answer

Spring 3.2 - Unable To Resolve View Name After Switching To JavaConfig

I just converted all of my xml config files to JavaConfig using Spring MVC 3.2.3 and Spring Security 3.2.1. I ran into some issues where entities that had members annotated with @ElementCollection(fetch=FetchType.EAGER) still weren't being fetched…
Bal
  • 2,027
  • 4
  • 25
  • 51
0
votes
0 answers

How to retrieve UI elements from a WPF app when using other threads?

I have a wpf setup where I have a timer running and I want to check to see what services are running and their state. I had this working in .net 4.5 but when I rolled it back to 4 the dispatcher signature changed and I am no longer able to access…
rlcrews
  • 3,482
  • 19
  • 66
  • 116
0
votes
0 answers

MediaElement throwing RPC_E_WRONG_THREAD

I'm trying to play a sound from my Windows Runtime Component during an event from a 3rd party hardware API, and it's turning out to be a lot more involved than I thought. When I try to instantiate a MediaElement I keep getting an exception with…
John
  • 452
  • 2
  • 14
0
votes
0 answers

Which class in Android OS handles intent dispatching?

I'm trying to customize my Android OS to temporarily shut down a few functionalities triggered by various intents. It's completely safe because it only happens on my device. However I have difficulty find out where the intent dispatcher lives. I've…
lindenrovio
  • 357
  • 3
  • 13
0
votes
3 answers

Updating image via Dispatcher still gives "different thread owns it" error

I'm trying to update an Image in my UI from an event in a different thread. I'm using a Dispatcher (based on this question: Fire events from different thread) to do so, but still get the "The calling thread cannot access this object because a…
DIF
  • 2,470
  • 6
  • 35
  • 49
0
votes
1 answer

Correct way to call Dispatcher.Invoke

Can anyone explain why the following code works on some Win7 PC's but on some I get a MissingMethodException and the Timer.Elapsed event is never called. Private Sub _timer2_Elapsed(ByVal sender As Object, ByVal e As System.EventArgs) Handles…
Jerry
  • 393
  • 4
  • 8
0
votes
1 answer

What is the use of Dispatcher Priority, DispatcherTimer, DispatcherFrame

I have an Async DataGrid loading feature. Hence, i need to call WaitFor(). Here's that code: WaitFor(TimeSpan.Zero, DispatcherPriority.SystemIdle); And following are the 2 methods. Can someone explain what this methods are exactly doing? public…
surajitk
  • 147
  • 4
  • 21
0
votes
1 answer

Not able to dispatch request in spring from one controller to another controller

I have dispatched my request from one controller to another controller using requestdispatcher but when it runs it goes into basictilesdef and gives me error This is source controller code public ModelAndView forwardRequest(HttpServletRequest…
Keval
  • 1
0
votes
1 answer

Dispatcher xps memory leak

I'm call a .net 4.0 dll from a vb6 app using com interop. In .net I create an xps document, via a xaml fixed document and save it to disk. This causes and memory leak and I've found a great solution here. Saving a FixedDocument to an XPS file causes…
paul rockerdale
  • 377
  • 6
  • 21