Questions tagged [invoke]
Executes the specified delegate on the thread that owns the control's underlying window handle.
1,798
questions
-1
votes
0
answers
25
views
collect garbage HookProc :: Invoke loss data
In my C# programing, I used 4 hook global variables, and I used Unhook at some location, I used static hook in Win32 API and library hook, I try delete 3 varriable and keep one hook but it still so ...
-1
votes
1
answer
79
views
Who will be the method invoker of a Class with no object?
In object-oriented programming, an "invoker" refers to an object or code that initiates/invokes the execution of a method or function on another object. But my question is what if a class ...
0
votes
3
answers
74
views
Multicast delegate with double return type, only returns the last method's result, and not All method's results [duplicate]
I am new to this topic and wanted to know is there a way that I could get all method's result and not only the last method's result while using a return type for multicast delegate?
Here is my code:
...
0
votes
0
answers
13
views
How invoking lambda function from cloud front without passing by apigateway
Actually, I invoke a lambda function by url that pass by apigateway.
I have an import function that take more than 30 seconds so in this case the apigateway return cancelled.
My question is there are ...
0
votes
2
answers
49
views
Flutter BarCode to check if data contains Letters/Word with QR Code Scanner
Hi I have been trying to read the QR Code and then navigate to a page when scan data contains specific keyword. Currently, I did print the data and it shows correctly, but when I want pass it to check ...
0
votes
0
answers
20
views
When changing scenes, the Script that contains an Invoke() gives an error
I have an Invoke() inside a Coroutine. This Invoke() looks like this:
private IEnumerator aguardarResultado()
{
while(!_rigidbody.IsSleeping())
{
yield return null;
}
int ...
0
votes
0
answers
13
views
Why is Invoke task reexecuted on code change?
I have defined Invoke task that runs foo function and then starts my Django app. Whenever I change the code, the whole task is reexecuted. I don't understand why reload mechanism triggers the task. I ...
0
votes
1
answer
65
views
running msiexec with parameters on remote machine
I am trying to run msiexec.exe with powershell on remote machine using Invoke-Command but it is not passing arguments into installer. I tried in several ways, my code looks like this:
$params = @(
$...
1
vote
1
answer
53
views
Sending Params Correctly without Interpolation with Splat
Can I directly import these parameters to my function with their correct types with only value with respectively?
$appparams = @{
sname = "RandomAppName" # type: string
sdata = ...
0
votes
0
answers
58
views
invoke error when close form with process running
I create a simple tool for my job to copy files, use robocopy by cmd.
I have two forms. the first is a GUI and the second is a embedded cmd to run command.
Everything works fine if I let the process ...
-1
votes
1
answer
307
views
NullPointerException in invokeSuspend
Fatal Exception: java.lang.NullPointerException:
at com.app.example.sampleClass.BaseViewModel$getList$1.invokeSuspend(BaseViewModel.java:125)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl....
0
votes
1
answer
66
views
Error: endorsement failure during invoke in Hyperledger Fabric
When I try to invoke, it says:
Error: endorsement failure during invoke. response: status:500 message:
"error in simulation: failed to execute transaction ...
0
votes
1
answer
48
views
How to pass uninstallation password to remote system via powershell to uninstall an application which is password Protected
I can silently uninstall application which doesn't have password Protected using Powershell .
Start-Process -Wait -FilePath $uninstall32 /SILENT
For password protected application (Setup created ...
0
votes
1
answer
51
views
invoke_long_callback in Taipy
I need run a "long_callback fuction" for long time task. I didn´t understand well about the callback details(link: https://docs.taipy.io/en/latest/manuals/gui/callbacks/.)
I have the ...
0
votes
0
answers
10
views
Method invoke no functional with the control label C#
I have a question :
I'm developing a program in C# that use the Framework version 4.8 and Visual Studio Community 2022 (64bits).
I need to use the class "Backgroudworker" for reasons of ...
0
votes
1
answer
320
views
Azure ml studio batch endpoint invoke fail
I have deployed a model on a batch endpoint, and it works when i create the job by the GUI, selecting via wizard the input and output data locations.
I need to run it from notebook, in particular i've ...
0
votes
3
answers
54
views
Cross-Thread Operations and the use of Invoke repetitive times, best approach
This is a WinForms application with a class that have several methods taking lot of time, those methods raise events at certain interval that I use to update the GUI, change labels, texts, colors, and ...
0
votes
2
answers
133
views
Cast object to awaitable type unknown at compile time
I have a concrete instance of IHandler<T> registered in the Microsoft IServiceProvider:
public interface IHandler<T>
{
Task<T> HandleAsync();
}
The type T is only known at ...
0
votes
2
answers
44
views
What happens if the invoker don't have the table used in the plsql procedure when using authID as current_user?
Suppose I've created a procedure in plsql with authid current_user to update a table t1. What happens if another user invokes the procedure if the table t1 is not created for user2.
Will it cause an ...
1
vote
2
answers
73
views
Cypress.io - How do I wait for the result of a method that returns an invoked attribute?
I have a method that gets the href-attribute of an element hrefAppTheme and checks if its one of the values of the string-array appThemes:
describe('...',() => {
it('should ...', () => {
...
-1
votes
1
answer
81
views
Why do I sometimes get System.NullReferenceException in Winforms app? [duplicate]
It happens rarely and has happened to me only in debugging mode, but it drives me crazy.
this is the function it happens in:
(in the code behind of form)
public override bool Func()
{
...
0
votes
1
answer
27
views
Invoking a deleted constructor in C++
class one: public two {
public: explicit one (specifier const& use_case);
one() = delete;
void stat(Statistic val);
};
I need to test the above mentioned public interface "void stat(...
-1
votes
2
answers
52
views
Calling for invoke func. from another class
I have a server Form that receives data from a client.
I made a class that handles the client with a thread.
When I try to update the UI thread, I get a thread error.
Public Class Form1
'...
End ...
0
votes
1
answer
38
views
Thread that loads data from file
I want to make a thread, that loads data from the file. I was thinking of using the invokeLater() method. But I think I messed up somewhere and can't figure out where.
This is my thread:
public class ...
0
votes
1
answer
79
views
Qt 6.5 How to dynamically create a QMetaMethodReturnArgument type?
void* filePtr = nullptr;
const auto couldInvoke = method.invoke(
path.get(),
Qt::DirectConnection,
QReturnArgument(method.returnMetaType().name(), filePtr),...
2
votes
1
answer
191
views
Executing .NET applications from memory with powershell
Hello i have this code:
# Note: This must be an executable or DLL compiled for .NET
$Path = "C:\Users\sadettin\desktop\tok.exe"
# Get Base64-encoded representation of the bytes that make up ...
2
votes
1
answer
65
views
Cross-thread operation not valid on form control when running inside Invoke() - .NET
I'm working in VB.NET 4.8.1
I created a function InvokeIfNecessary(action) which checks if it's running on the UI thread and invokes to the main form if not.
Public Sub InvokeIfNecessary(act As Action)...
0
votes
0
answers
333
views
the problem with the authorization token in nifi
The response from the API in json format is not displayed due to the fact that I cannot find where to put the authorization token, which is registered in headers in Postman. Where do I need to add ...
0
votes
2
answers
739
views
How to "Invoke" AWS Lambda function from EventBridge Scheduler with path?
I'm trying to configure AWS EventBridge Scheduler to invoke Lambda with path but couldn't.
I can invoke Lambda function (Nuxt3 application), but the invoked path is "/".
I want to invoke it ...
0
votes
0
answers
101
views
About Unity Abstract Class Susbscribe an Action
I'm having a problem when subscribing an abstract class to an action in Unity. When I invoke the action, it sometimes executes more than once. However, when I subscribe a subclass to the action, it ...
2
votes
3
answers
145
views
What is the best way to reuse static code
As defined in the PowerShell scripting performance considerations document, repeatedly calling a function can be an expensive operation. Yet the concerned function (or just code) might be (re)used at ...
2
votes
1
answer
225
views
Python Invoke module fails
I am trying to understand how the invoke module works in Python. I have installed the package using the pip install and I am trying to invoke a script in the following manner.
I create a tasks.py as ...
0
votes
1
answer
52
views
Changing WindowsForms UI in a Task c#
I wrote a windows forms application where I receive messages with MQTTNet from the broker. I want to change the UI according to the received message. But I couldn't make it happen. I took the client ...
0
votes
0
answers
41
views
This Invoke isn't executed and somehow just closes my backgroundworker. Why?
Greetings fellow citicens,
recently I startet using C# and there still are quite a few things I have to figure out.
Currently I have to debug a chaotic old winforms project of a former colleague and ...
2
votes
1
answer
57
views
Dotnet Reflection: Calling Invoke on MethodInfo With 'out' Parameter from F#
I retrieve a TryParse method for a given type like this:
open System.Reflection
let stringParser<'T> =
typeof<'T>.GetMember("TryParse")
|> Seq.cast<MethodBase>
...
1
vote
1
answer
180
views
Cypress - Storing input values as alias and compare previous and current values
I want to store the values of all inputs via alias then after after changing the data get the current values and compare previous and current alias to each other.
My actions:
First, getting all input ...
-1
votes
2
answers
80
views
How to update label in Form1 from Class?
I'm trying to update Label which is in Form1 obviously and it count good proxies, if there is a exception thrown it count bad proxies.
The Sub which invoke this labels are in Form1, the method is ...
0
votes
0
answers
61
views
Invoke vs. DynamicInvoke exception handling
Having the Invoke method inside try/catch, if invoked delegate throws an exception, the catch will get it. If the same delegate is invoked using DynamicInvoke, the catch doesn't get it.
Here is a ...
0
votes
0
answers
47
views
The main form freezes even though I use a BackgroundWorker and Control.Invoke()
In the following source code, I am loading 20 CSV files (Each CSV file has 1000000 rows and three columns) and drawing 20 plots using ZedGraph.
I am using BackgroundWorker to generate plots.
...
0
votes
1
answer
84
views
Send the progress bar as a parameter to a function in another class that return Task<bool> Type
I want to send a progress bar that is available on my form to a function to display the progress of the operation of that function and finally return true if everything is fine and return false if ...
0
votes
1
answer
419
views
Calling COM from C++ using CoCreateInstance and IDispatch, with numerous parameters in DISPPARAMS incl. SAFEARRAY
I have a COM object which exposes a function. I would like to pass parameters to this function and receive a return value. I'm using C++ with CoCreateInstance(). The error I receive is:
hr = ...
0
votes
1
answer
122
views
How to accept only callable objects in templates except pointer to data members?
I want to create a templated function which accepts and invokes a callable object(except pointer to data members) with arguments to pass to it.
I want the template to only accept the following types:-
...
0
votes
0
answers
15
views
Reaching Fragment's function from the Activity
I have an activity with a ViewPager that hosts 3 fragments. I'd like to change the UI of a fragment when it is selected. (no callback function is called). Using OnTabSelectedListener I have access to ...
-2
votes
1
answer
87
views
How to call api in powerbi to get data?
I am a bit beginner of powerbi, I want to call api from power bi to get some data.
I tried to write this code but always return this error once I clicked invoke button
Here is the code that I used:
...
0
votes
0
answers
27
views
Unable to run the app, it launches and immediately terminates
The steps invole:
Open VS code as administrator.
yarn clean:android to clean the project
yarn android
It does the configuration and installs the app in my phone, but the moment the app launches in ...
0
votes
1
answer
38
views
Dynamically update button
I am attempting to dynamically add a list of buttons:
private void updateClientListUI()
{
if (this.InvokeRequired)
{
this.Invoke(new MethodInvoker(this....
1
vote
1
answer
505
views
How to call Appwrite function from postman?
I have appwrite instance deployed locally. I have created a function and deployed successfully. How can I call that function from postman through HTTP request?
My local instance URL: http://localhost/...
0
votes
2
answers
64
views
fabric.api.sudo() returning empty stderr on error condition
I am new to fabric.
I am running a command as res = fabric.api.sudo(f"pip install {something}",user=user)
I expect the command to return stderr or abort when the package/version is not found ...
1
vote
0
answers
104
views
Is (,$arrr) the best way to pass a single array as an argument list to a powershell invoke-command cmdlet? [duplicate]
I want to pass an array to a PowerShell script block. This is the accepted method:
$arr = 1..4;
invoke-command -ScriptBlock { Param($li); $li | %{$_}} -ArgumentList (,$arr)
From my investigations, ...
0
votes
0
answers
102
views
How to change the reactEventHandlers's value property in Cypress
I'm trying to change the element's property: __reactEventHandlers$p67bfoorzg.value
element's property
but the &p67bfoorzg always changes (random)
I want to change the value from cypress..
I tried:
...