begininvoke
can I modify the nature of the thread that will BeginInvoke my delegate?
I am implementing an interface that has a BeginSomething() and EndSomething() pair, and my implementation is in a method Execute()[详细]
2023-02-24 23:49 分类:问答Does BeginInvoke() run a separate thread? [duplicate]
This question already has answers here: Does Func<T>.BeginInvoke use the ThreadPool? (2 answers) 开发者_高级运维[详细]
2023-02-23 05:16 分类:问答How to implement a asynchronized workflow?
WorkflowInvoker invoker = new WorkflowInvoker(开发者_JAVA技巧new Workflow1()); for (int i = 0; i < 10; i++)[详细]
2023-02-22 20:21 分类:问答When is invoke required on GUI objects?
Using C# Windows.Forms, do the methods Invalidate(), Refresh(), etc. have to be run on the main/GUI thread (require Invoke/BeginInvoke)?How about changes to members of a GUI object such as adding/dele[详细]
2023-02-22 19:23 分类:问答Two questions about AsyncCallback and IAsyncResult pattern
Two questions on the callback pattern with AsyncCallback and IAsyncResult. I changed the question with a c开发者_JAVA技巧ode example:[详细]
2023-02-12 15:51 分类:问答Dispatcher.BeginInvoke: Cannot convert lambda to System.Delegate
I\'m trying to call System.Windows.Threading.Dispatcher.BeginInvoke. The signature of the method is this:[详细]
2023-02-09 02:26 分类:问答What should be passed for BeginInvoke's @object parameter?
I have开发者_运维技巧 an event delegate that is defined as follows: public delegate void CallbackDelegate(Data data);[详细]
2023-02-06 05:51 分类:问答Can I use BeginInvoke with a MulticastDelegate?
I want to raise a series of events from my library class, but I\'m worried that some event subscribers will be rude and take a long time to process some events, thus blocking the thread that is raisin[详细]
2023-02-05 15:41 分类:问答Is there a variant of Control.BeginInvoke which works before/after the handle is destroyed?
I have a control which displays the state of an underlying asynchronous object. The object raises events, which arrive at the form, where they are essentially queued and eventually called using BeginI[详细]
2023-02-01 08:19 分类:问答Invoking method asynchronously several times results in OutOfMemory exception
Problem: if I invoke LoadFile() several times (10-20 times is enough) asynchronously using the big PDF file (50Mb, 1500 pages) then I get OutOfMemory exception rather quickly. If I call GC.Collect() a[详细]
2023-01-27 16:26 分类:问答