Click here to Skip to main content
15,913,283 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to find out when system going to be shut down Pin
«_Superman_»18-Jan-09 17:56
professional«_Superman_»18-Jan-09 17:56 
AnswerRe: how to find out when system going to be shut down Pin
N a v a n e e t h18-Jan-09 20:50
N a v a n e e t h18-Jan-09 20:50 
AnswerRe: how to find out when system going to be shut down Pin
Giorgi Dalakishvili19-Jan-09 0:43
mentorGiorgi Dalakishvili19-Jan-09 0:43 
Questiontype def in c# Pin
lawrenceinba18-Jan-09 17:43
lawrenceinba18-Jan-09 17:43 
AnswerRe: type def in c# Pin
CodingYoshi18-Jan-09 19:17
CodingYoshi18-Jan-09 19:17 
AnswerRe: type def in c# Pin
N a v a n e e t h18-Jan-09 20:33
N a v a n e e t h18-Jan-09 20:33 
AnswerRe: type def in c# Pin
S. Senthil Kumar19-Jan-09 1:30
S. Senthil Kumar19-Jan-09 1:30 
QuestionEvents and delegates, recursive calling? Pin
Shao Voon Wong18-Jan-09 17:34
mvaShao Voon Wong18-Jan-09 17:34 
Hi guys,

I have a question which I am not sure how to put it exactly. I have a method DoTask: when DoTask is completed, it will fire up a TaskCompleted event which will invoke the OnTaskCompleted method, however if it is some more tasks to be done, OnTaskCompleted will call DoTask. This cycle keeps repeating until there is no more task. What I am afraid, is event calling is synchronous, meaning DoTask calls OnTaskCompleted and OnTaskCompleted calls DoTask, it is being done recursively, it may run out of stack memory as the user may be running my application for a long time.

Is event calling done in the caller or it is dispatched to be done at a later time?

Thank you very much!
AnswerRe: Events and delegates, recursive calling? Pin
CodingYoshi18-Jan-09 19:26
CodingYoshi18-Jan-09 19:26 
GeneralRe: Events and delegates, recursive calling? Pin
Shao Voon Wong18-Jan-09 21:38
mvaShao Voon Wong18-Jan-09 21:38 
AnswerRe: Events and delegates, recursive calling? Pin
N a v a n e e t h18-Jan-09 20:32
N a v a n e e t h18-Jan-09 20:32 
GeneralRe: Events and delegates, recursive calling? Pin
Shao Voon Wong18-Jan-09 21:42
mvaShao Voon Wong18-Jan-09 21:42 
AnswerRe: Events and delegates, recursive calling? [modified] Pin
Luc Pattyn18-Jan-09 21:28
sitebuilderLuc Pattyn18-Jan-09 21:28 
GeneralRe: Events and delegates, recursive calling? Pin
Shao Voon Wong18-Jan-09 21:36
mvaShao Voon Wong18-Jan-09 21:36 
GeneralRe: Events and delegates, recursive calling? Pin
N a v a n e e t h18-Jan-09 21:48
N a v a n e e t h18-Jan-09 21:48 
AnswerRe: Events and delegates, recursive calling? [modified] Pin
Luc Pattyn18-Jan-09 22:07
sitebuilderLuc Pattyn18-Jan-09 22:07 
GeneralRe: Events and delegates, recursive calling? Pin
N a v a n e e t h18-Jan-09 22:11
N a v a n e e t h18-Jan-09 22:11 
AnswerRe: Events and delegates, recursive calling? Pin
S. Senthil Kumar19-Jan-09 0:08
S. Senthil Kumar19-Jan-09 0:08 
QuestionCopy OLE objects from clipboard into RichTextBox Pin
mailtogj18-Jan-09 17:24
mailtogj18-Jan-09 17:24 
AnswerRe: Copy OLE objects from clipboard into RichTextBox Pin
Eddy Vluggen18-Jan-09 22:09
professionalEddy Vluggen18-Jan-09 22:09 
Questiondouble pointer and bool Pin
lawrenceinba18-Jan-09 17:10
lawrenceinba18-Jan-09 17:10 
AnswerRe: double pointer and bool Pin
N a v a n e e t h18-Jan-09 19:43
N a v a n e e t h18-Jan-09 19:43 
Questionhow to convert it to c# Pin
lawrenceinba18-Jan-09 17:08
lawrenceinba18-Jan-09 17:08 
AnswerRe: how to convert it to c# Pin
N a v a n e e t h18-Jan-09 19:42
N a v a n e e t h18-Jan-09 19:42 
Questiontrue becomes false, then insanity becomes true. Pin
thrakazog18-Jan-09 16:47
thrakazog18-Jan-09 16:47 

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.