Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What does address of operator do in background?
What does address of operator do in background?
✍: Guest
The AddressOf operator creates a delegate object to the BackgroundProcess method. A delegate within VB.NET is a type-safe, object-oriented function pointer. After the thread has been instantiated, you begin the execution of the code by calling the Start() method of the thread
When we instantiate a new Thread class we pass it a reference to the code block we want to execute in the constructor of the Thread class. The following code creates a new Thread object and passes it a reference to BackgroundProcess:
Dim t As Thread
t = New Thread(AddressOf Me.BackgroundProcess)
t.Start()
The AddressOf operator here creates a delegate object to the BackgroundProcess method. And the execution is resume after the Start method is called.
2009-03-06, 8731👍, 0💬
Popular Posts:
What is CMM and different levels? explain? The Capability Maturity Model (CMM) is a process capabili...
How To Use mysqlbinlog to View Binary Logs? - MySQL FAQs - Server Daemon mysqld Administration If yo...
How was XML handled during COM times? During COM it was done by using MSXML 4.0. So old languages li...
How do we assign page specific attributes ? Page attributes are specified using the @Page directive.
What are the types of variables x, y, y and u defined in the following code? #define Atype int* type...