I've noticed a trend in my own recent programming that leads to this month's column theme. Recently, I've done a lot of win32®interop in applications based on the Microsoft®.net Framework. I'm not saying that my application is full of custom interop
Today I stumbled upon some information about invoke and BeginInvoke, and I was not quite sure of the difference between them. So it took a little time to study it.
The biggest difference, according to MSDN, is that BeginInvoke is part of
The Invoke and BeginInvoke of Control are relative to the branch thread (because they are generally called in the branch thread to update the main thread ui). Invoke is immediately inserted into the main thread for execution, and BeginInvoke is
Recently, the control of the invoke and BeginInvoke engaged in the head of the big, on the search for some relevant information, collation as follows.The control's invoke and BeginInvoke are executed relative to the spur thread (because it is
DownloadCode: Net0307.exe (133kb) I have noticed a trend in my recent programming, which leads to the topic of this month. Recently, I have been using Microsoft. NET Framework-based applications.ProgramCompleted a lot of Win32 InterOP. I am not
Control. Invoke method (delegate):InYesOn the thread of the basic window handle of this controlRunThe specified delegate.
Control. begininvoke method (delegate): InCreateOn the thread where the basic handle of the control is locatedAsynchronous
Transferred from http://www.cnblogs.com/c2303191/articles/826571.html
Control.Invoke method (Delegate) : executes the specified delegate on the thread that owns the underlying window handle of this control.
Control.BeginInvoke method (Delegate):
I. Why does the control class provide the invoke and begininvoke mechanisms?
The main reason for this problem is already well known by dotnetprogrammers. I have recorded my own logs again here so that I can remind myself later.1. Windows program
Dispatch_propertyget
The member is retrieved as a property or data member.This is the most critical address of this article, if the value you return is a COM object, will the caller increase AddRef? No, so you need to add the
Original posts: http://www.cnblogs.com/Z-King/archive/2011/11/03/2234337.htmlhas been the use of invoke and BeginInvoke and the concept of confusion, the two days to read some information, the use of these two and the principle of a new
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.