dispatcher Questions
6
Solved
I've got an application with multiple Dispatchers (aka GUI threads, aka message pumps) to ensure that a slow, unresponsive portion of the GUI runs without affecting the rest of the application too ...
Impress asked 16/6, 2011 at 8:9
2
Solved
Consider the code:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void button_Click(object sender, RoutedEventArgs e)
{
//System.Threadi...
Essieessinger asked 12/4, 2017 at 8:23
8
Does a System.Windows.Threading.Dispatcher work on the UI-thread of a WinForms application?
If yes, why? It is coming from WindowsBase.dll which seems to be a WPF component.
If not, how can I inv...
Inhabited asked 19/11, 2008 at 19:49
0
I want to test the following very common usecase as an Instrumented Test in Android:
When clicking a button a fetch() function is called in my ViewModel
This function tells the view to show a load...
Ambidexterity asked 15/2, 2022 at 11:15
3
Solved
In WPF all controls inherit DispatcherObject & its easy to get to the Dispatcher.
How would I get the DispatcherQueue using WinUI 3 Windows App SDK and use it in a ViewModel?
EDIT
My implementa...
Eddins asked 8/11, 2021 at 14:42
2
Solved
I tried to use the below code to make a 2 second delay before navigating to the next window. But the thread is invoking first and the textblock gets displayed for a microsecond and landed into the ...
Bilicki asked 24/3, 2013 at 14:50
4
Solved
Neither of these work:
_uiDispatcher.Invoke(() => { });
_uiDispatcher.Invoke(delegate() { });
All I want to do is Invoke an inline method on my main UI thread. So I called this on the main th...
Eserine asked 3/3, 2012 at 19:56
16
Solved
I am aware of pydispatcher, but there must be other event-related packages around for Python.
Which libraries are available?
I'm not interested in event managers that are part of large framew...
Godolphin asked 7/7, 2009 at 14:0
9
Solved
I am currently facing a problem for which I am pretty sure there is an official name, but I don't know what to search the web for. I hope that if I describe the problem and the solution I have in m...
Crater asked 22/5, 2019 at 19:0
5
I realized something strange in my background worker in my WPF application.
What I'm trying to accomplish right now is to wait until the BW finishes to start another thread.
Check the following c...
Doorstone asked 21/1, 2013 at 0:34
3
Solved
I have a very bad feeling about using lock in my code but now the Dispatcher of WindowBase exists and I want to use it everywhere.
For example I use a multi thread singleton WCF service who publis...
Armor asked 28/1, 2009 at 7:23
16
Solved
I'm supposed to be able to access the Dispatcher that belongs to the View I need to pass it to the ViewModel. But the View should not know anything about the ViewModel, so how do you pass it? Intro...
Zither asked 1/3, 2010 at 7:48
3
Is it possible to lock multiple external resources to a build in Jenkins? We have tried the External Resource Dispatcher Plugin but did not succeed.
Zippy asked 15/7, 2013 at 9:44
5
Solved
Im working on a WPF application. I have a label called "Status_label" in MainWindow.xaml. and I want to change its content from a different class (signIn.cs).
Normally I'm able to do this
var main...
Equestrian asked 15/3, 2013 at 5:37
16
Solved
I'm having trouble getting the Dispatcher to run a delegate I'm passing to it when unit testing. Everything works fine when I'm running the program, but, during a unit test the following code will ...
Himyarite asked 9/7, 2009 at 23:1
4
Solved
I have recently started programming in WPF and bumped into the following problem. I don't understand how to use the Dispatcher.Invoke() method. I have experience in threading and I have made a few ...
Treat asked 29/10, 2009 at 14:20
3
Solved
I'm implementing a C++ program that can programmatically instantiate objects given an input file which provides the class names and arguments to pass to the constructors.
The classes are derived f...
Hulahula asked 19/12, 2011 at 0:27
5
Solved
I'm building a Windows Store app, and I have some code that needs to be posted to the UI thread.
For that, i'd like to retrieve the CoreDispatcher and use it to post the code.
It seems that there...
Pish asked 10/5, 2013 at 7:24
1
Solved
Can someone please explain the difference between Kotlin Coroutine's ExecutorCoroutineDispatcher and CoroutineDispatcher from practical point of view, i.e. in which scenarios to use one against ano...
Hexagram asked 14/11, 2019 at 10:36
3
Solved
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 ...
Lentigo asked 20/10, 2011 at 16:45
4
Solved
I got the following exception:
InvalidOperationException : The calling thread cannot access this object because a different thread owns it.
when I try to set the Owner of a window that is build o...
Activist asked 15/2, 2013 at 13:44
2
Solved
Is there any way to get the UI thread's Dispatcher when you have no reference to any UI elements?
Glazunov asked 18/4, 2010 at 16:54
4
Solved
I just realized in a C# .Net 4.0 WPF background thread that this doesn't work (compiler error):
Dispatcher.Invoke(DispatcherPriority.Normal, delegate()
{
// do stuff to UI
});
From some example...
Dam asked 5/6, 2011 at 20:45
1
I am trying to configure Access-Control-Allow-Origin in Apache to allow certain domains. Below is my httpd configuration
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"...
General asked 31/1, 2018 at 11:28
5
Solved
I'm trying to call System.Windows.Threading.Dispatcher.BeginInvoke. The signature of the method is this:
BeginInvoke(Delegate method, params object[] args)
I'm trying to pass it a Lambda instead...
Doorn asked 8/2, 2011 at 17:49
1 Next >
© 2022 - 2025 — McMap. All rights reserved.