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
2 answers

how to use Dispatcher in WPF to make a timer

Iam a noobi i have this problem , i need to make a timer for my program ,which starts when the user clicks a specific button. and then to output the countdown in to a label Thanks in advance
nashat
  • 11
  • 2
0
votes
3 answers

WPF UI is unrespoonsive during Dispatcher.Invoke call

I have this delegate: private delegate void NoArgDelegate(BitmapImage image); I instantiate the delegate and run it with Dispatcher.Invoke like so: var fetcher = new NoArgDelegate(InstantiateForm); Dispatcher.Invoke(fetcher,…
JMK
  • 27,273
  • 52
  • 163
  • 280
0
votes
2 answers

I want to use MemoryStream replace FileStream

I have problem with add Image, I can add one time, if i add two or more add it error: The process cannot access the file 'C:\Users\Administrator\AppData\Roaming\afinos\CaptureImage\CapImage.Jpg' because it is being used by another process.I use…
Kh Pisey
  • 11
  • 2
0
votes
0 answers

Why doesn't my Grid update when I add children in dispatcher?

I'm running a fairly simple task with the kinect, just trying to display data streams using the polling method. I am running all of my processing on a backgroundworker, and using dispatcher to update the UI. The code below works fine for depth and…
0
votes
3 answers

Flash's AS3 Main Document Class as a dispatchEvent relay

I need an event redispatcher at the top of the DisplayObject hierarchy. Simple situation built from other questions of mine: public class Main extends MovieClip { // Document Class at Flash private var objectA:ClassA; private var…
user1869316
0
votes
1 answer

Proper dispatch management in my php framework

I am having a go at creating a small framework. I am currently busy with my dispatcher object and I am having trouble to logically work out the best practice as to how the dispatcher should tie in the controller and requested view/action. So far…
mauzilla
  • 3,574
  • 10
  • 50
  • 86
0
votes
0 answers

System.InvalidOperationException: Cannot use a DependencyObject that belongs to a different thread than its parent Freezable

I have this problem... but can't figure out where is coming from. Do you know of a way to debug this? This happens in a WPF application that has several windows each running in different dispatchers. System.InvalidOperationException: Cannot use a…
Nestor
  • 13,706
  • 11
  • 78
  • 119
0
votes
1 answer

How does the Dispatcher thread work in wpf a UI control

How does the Dispatcher thread work in wpf a UI control?
Jaswant Agarwal
  • 4,755
  • 9
  • 39
  • 49
0
votes
1 answer

Error compiling delegate and dispatcher

I'm new to the threading world and trying to make my application works with threads. Here is what I got: public static void ThreadProc() { Thread.Sleep(500); MemoryMappedFile mmf = MemoryMappedFile.OpenExisting("SuperMMFofDoom",…
dan
  • 3,439
  • 17
  • 54
  • 82
0
votes
1 answer

webpage is not opening / broken when using spring applicationcontext and dispatcherservlet separately

I'm trying to separate my application core services from my dispatcherservlet and classes that have @Controller annotation. I've read numerous topic here on SO but didn't find any example that suits my case, only explanations about root-child…
Skyzer
  • 584
  • 3
  • 11
  • 27
0
votes
1 answer

Modifying my dispatcher

I'm modifying my dispatcher to take advantage of namespaces. My autoloader is very standard and looks like this: $paths = array( get_include_path(), ROOT . DS . 'library' . DS . 'intranet' . DS . 'classes', ROOT . DS .…
bear
  • 11,364
  • 26
  • 77
  • 129
0
votes
1 answer

How to invoke costume control and add it to controls children using c# WPF

Hi i have a program i created for my website i was trying to update it so that the intense part of the code would run in a separate thread. The new thread creates several costume controls that i need to be placed inside of a container as a child…
0
votes
1 answer

WPF Dispatcher Thread

I have a WPF application that at start up inits a named pipe server on a separate thread. At some point in time, named pipe clients send info to this thread that in turn needs to update an Observable Collection in the ViewModel. Attempting to do so…
Rahul
  • 2,194
  • 4
  • 31
  • 46
0
votes
3 answers

Simple task without freezing the gui

I came across with a little problem. I have two threads one that executes a loop that needs to return/send a number to the GUI's thread every time. For this I use the BackGroundWorker and the ReportProgress . Let say something like that: I have a…
Matan Givoni
  • 1,080
  • 12
  • 34
0
votes
3 answers

View is not updated when on a separate thread

I am trying to load some data in a separate thread, then add the loaded data to an ObservableCollection and update the view through ba binding. First, I was doing the following: public OverviewViewModel() { Thread thread = new Thread(new…
simonbs
  • 7,932
  • 13
  • 69
  • 115