Click here to Skip to main content
16,016,076 members
Home / Discussions / C#
   

C#

 
Generalasynchronous function call Pin
George_George26-Apr-08 4:34
George_George26-Apr-08 4:34 
GeneralRe: asynchronous function call Pin
Spacix One26-Apr-08 6:01
Spacix One26-Apr-08 6:01 
GeneralRe: asynchronous function call Pin
George_George26-Apr-08 21:31
George_George26-Apr-08 21:31 
GeneralRe: asynchronous function call Pin
N a v a n e e t h26-Apr-08 7:12
N a v a n e e t h26-Apr-08 7:12 
GeneralRe: asynchronous function call Pin
Spacix One26-Apr-08 7:50
Spacix One26-Apr-08 7:50 
GeneralRe: asynchronous function call Pin
George_George26-Apr-08 21:37
George_George26-Apr-08 21:37 
GeneralRe: asynchronous function call Pin
George_George26-Apr-08 21:35
George_George26-Apr-08 21:35 
GeneralRe: asynchronous function call Pin
N a v a n e e t h27-Apr-08 19:47
N a v a n e e t h27-Apr-08 19:47 
George_George wrote:
I think EndInvoke can achieve the same effect, e.g. you can do something and then invoke EndInvoke.


It not same fully even though it looks same. When you use WaitOne(), you are allowed to do some extra processing before EndInvoke() is called. That is WaitOne() will wait until the asynchronous method signals it, then the code will come to the next line where you can do further processing and call EndInvoke(). But if you call EndInvoke() directly, it blocks the current thread until it returns the result. Hence you won't be able to do any further processing outside the asynchronous method.

Hope it's clear.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: asynchronous function call Pin
George_George27-Apr-08 19:54
George_George27-Apr-08 19:54 
GeneralRe: asynchronous function call Pin
N a v a n e e t h27-Apr-08 22:17
N a v a n e e t h27-Apr-08 22:17 
GeneralRe: asynchronous function call Pin
George_George27-Apr-08 23:36
George_George27-Apr-08 23:36 
GeneralRe: asynchronous function call Pin
N a v a n e e t h27-Apr-08 23:57
N a v a n e e t h27-Apr-08 23:57 
GeneralRe: asynchronous function call Pin
George_George28-Apr-08 1:24
George_George28-Apr-08 1:24 
GeneralRe: asynchronous function call Pin
S. Senthil Kumar26-Apr-08 16:02
S. Senthil Kumar26-Apr-08 16:02 
GeneralRe: asynchronous function call Pin
George_George26-Apr-08 21:42
George_George26-Apr-08 21:42 
GeneralRe: asynchronous function call Pin
S. Senthil Kumar27-Apr-08 3:23
S. Senthil Kumar27-Apr-08 3:23 
GeneralRe: asynchronous function call Pin
George_George27-Apr-08 3:35
George_George27-Apr-08 3:35 
GeneralRe: asynchronous function call Pin
S. Senthil Kumar27-Apr-08 5:16
S. Senthil Kumar27-Apr-08 5:16 
GeneralRe: asynchronous function call Pin
George_George27-Apr-08 17:41
George_George27-Apr-08 17:41 
Questionhow to attach signature to word document Pin
Sunix.Fu26-Apr-08 4:09
Sunix.Fu26-Apr-08 4:09 
Generalapplication given en error when parameters in stored procedure is changes [modified] Pin
sanjubaba26-Apr-08 2:18
sanjubaba26-Apr-08 2:18 
Questionstructure problem in c# Pin
rjkg26-Apr-08 1:08
rjkg26-Apr-08 1:08 
GeneralRe: structure problem in c# Pin
Luc Pattyn26-Apr-08 1:44
sitebuilderLuc Pattyn26-Apr-08 1:44 
QuestionRe: structure problem in c# Pin
rjkg26-Apr-08 1:52
rjkg26-Apr-08 1:52 
GeneralRe: structure problem in c# Pin
Anthony Mushrow26-Apr-08 2:18
professionalAnthony Mushrow26-Apr-08 2:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.