Questions tagged [dynamic-invoke]

22 questions
1
vote
2 answers

Strange behavior with DynamicInvoke and Invoke

I read this post and I tried to do the same but I came across a very strange behavior when comparing the del.DynamicINvoke(args) Vs. del(args) Update So after Jon and usr comments i post now new working code. I'll really appreciate any…
Maya
  • 959
  • 4
  • 11
  • 18
0
votes
0 answers

DLLImport vs DinamicInvoke or Method.Invoke in VB.NET

I want to call function MoveFile from "Kernel32.dll". 1)First approach: Imports System.Runtime.InteropServices Public Class Form1
0
votes
1 answer

Truly no way to "generate" C# from byte[] containing IL with method body?

I`ve being playing around with reversing of some obfuscated code out there and I have stumbled upon one tricky DLL that had a "method body" (IL code) in a byte[] array and was later on invoking it with dynamic invoke. Is analyzing MSIL the only way…
MZ64
  • 11
  • 1
0
votes
1 answer

Thread was canceled on new CookieContainer when dynamically Invoking Method with Task.Factory.StartNew

I begin by loading some dlls in a folder and storing a instance of the Core class together with the name as keys in a Dictionary, like so: const string SEARCH_PATH = "./Cores"; const string FILE_NAME_MASK = "*.core.dll"; …
0
votes
1 answer

Java Method Handles: propagate unbound arguments across functions

I would like to create a method handle that allows me to pass as argument a value that will be bound to a placeholder way down the method handle tree. Figure, something like this: f(x) = plus( minus( x, 2), 3) where x is passed at invoke, and 2 and…
Gui13
  • 11,951
  • 16
  • 49
  • 98
0
votes
1 answer

Dynamic invoke and sleep thread

I've a question about dynamic invoke and threads. Let's suppose that I have a main thread that in some point shows a dialog. public void showDialog() { lock(mutexObject) { flagDialogShowing = true; …
acostela
  • 2,339
  • 2
  • 26
  • 44
0
votes
2 answers

Calling delegates later aka. delegate queue

so I'm pretty new to c# and I've came around this problem: I have some methods that invoke different delegates (with potentially different argument types). However these delegates shouldn't be called right away. If the main Thread is running a…
Yamcha
  • 1,084
  • 14
  • 23
1
2