Click here to Skip to main content
15,896,915 members
Home / Discussions / C#
   

C#

 
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 
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 
Good point, Senthil!


Two more comments,

1.

From the link you referred, I can not find words like "Always call EndInvoke to complete your asynchronous call", and it is appreciated if you could point out. Smile | :)

2.

S. Senthil Kumar wrote:
1. Any exceptions that occurred in the asynchronous method will be thrown when you call EndInvoke, so if you don't call it, you'll miss those.


I think you mean some code only calls WaitHandle without calling EndInvoke (WaitHandle is singnalled when asynchronous call completes, and you can have choice to ignore return value by without calling EndInvoke)?

If yes, I think the asynchronous method should be executed in another CLR thread, other than the current thread. Right?

And if any exception occurs in the CLR thread, could be caught in the current thread? I doubt it. Since I think the C# exception handling approach does not allow us to have cross-threads exception handling -- means exception occurs in one thread, and we can catch it in another thread? Any comments?


regards,
George
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 
GeneralRe: structure problem in c# Pin
rjkg26-Apr-08 2:25
rjkg26-Apr-08 2:25 
GeneralRe: structure problem in c# Pin
Anthony Mushrow26-Apr-08 2:35
professionalAnthony Mushrow26-Apr-08 2:35 
GeneralRe: structure problem in c# Pin
Luc Pattyn26-Apr-08 2:21
sitebuilderLuc Pattyn26-Apr-08 2:21 
GeneralRe: structure problem in c# Pin
Guffa26-Apr-08 3:18
Guffa26-Apr-08 3:18 
GeneralRe: structure problem in c# Pin
Thomas Stockwell26-Apr-08 18:12
professionalThomas Stockwell26-Apr-08 18:12 
Generaldefault exception handling Pin
George_George25-Apr-08 22:28
George_George25-Apr-08 22:28 
GeneralRe: default exception handling Pin
Christian Graus25-Apr-08 22:57
protectorChristian Graus25-Apr-08 22:57 

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.