Click here to Skip to main content
15,888,401 members
Home / Discussions / C#
   

C#

 
QuestionAsynchronous call of a dynamically loaded method? Pin
matthias s.18-Jul-08 1:14
matthias s.18-Jul-08 1:14 
AnswerRe: Asynchronous call of a dynamically loaded method? Pin
N a v a n e e t h18-Jul-08 1:34
N a v a n e e t h18-Jul-08 1:34 
GeneralRe: Asynchronous call of a dynamically loaded method? Pin
matthias s.18-Jul-08 1:47
matthias s.18-Jul-08 1:47 
GeneralRe: Asynchronous call of a dynamically loaded method? Pin
N a v a n e e t h18-Jul-08 2:03
N a v a n e e t h18-Jul-08 2:03 
GeneralRe: Asynchronous call of a dynamically loaded method? Pin
matthias s.18-Jul-08 2:59
matthias s.18-Jul-08 2:59 
GeneralRe: Asynchronous call of a dynamically loaded method? Pin
N a v a n e e t h18-Jul-08 3:14
N a v a n e e t h18-Jul-08 3:14 
GeneralRe: Asynchronous call of a dynamically loaded method? Pin
matthias s.18-Jul-08 3:52
matthias s.18-Jul-08 3:52 
GeneralRe: Asynchronous call of a dynamically loaded method? Pin
N a v a n e e t h18-Jul-08 17:17
N a v a n e e t h18-Jul-08 17:17 
matthias s. wrote:
WaitHandle doesn't contain a Set() method.


Yes. It doesn't contain a set method. It's my mistake, it should be "EventWaitHandle".
private class DataCarrier
{
   JobInfo JobInfoInstance { get; set; }
   EventWaitHandle Handle { get; set; }

   DataCarrier(JobInfo info,EventWaitHandle handle){
      this.JobInfoInstance = info;
      this.Handle = handle;
   }
}


matthias s. wrote:
but I don't fully understand the lines where the new thread is started.


matthias s. wrote:
{
DataCarrier c = userState as DataCarrier;
// use c.JobInfoInstance here
info.Invoke();
c.Handle.Set();
}


Quoted one is the method which gets executed when thread starts. You can create a new method and put this there if you are confused with anonymous methods. I used it for simplicity.

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

How to use google | Ask smart questions

QuestionUsing MIRR function in c# Pin
sumit703418-Jul-08 0:16
sumit703418-Jul-08 0:16 
AnswerRe: Using MIRR function in c# Pin
CPallini18-Jul-08 0:32
mveCPallini18-Jul-08 0:32 
GeneralRe: Using MIRR function in c# Pin
sumit703418-Jul-08 0:38
sumit703418-Jul-08 0:38 
GeneralYou are welcome. Pin
CPallini18-Jul-08 0:41
mveCPallini18-Jul-08 0:41 
QuestionSerialPort and data received event Pin
kildareflare18-Jul-08 0:02
kildareflare18-Jul-08 0:02 
AnswerRe: SerialPort and data received event Pin
kildareflare18-Jul-08 1:01
kildareflare18-Jul-08 1:01 
GeneralRe: SerialPort and data received event Pin
Luc Pattyn18-Jul-08 1:38
sitebuilderLuc Pattyn18-Jul-08 1:38 
QuestionCan any body Tell me about 64 bit Pin
wasimsharp17-Jul-08 23:46
wasimsharp17-Jul-08 23:46 
AnswerRe: Can any body Tell me about 64 bit Pin
windhopper17-Jul-08 23:54
windhopper17-Jul-08 23:54 
GeneralRe: Can any body Tell me about 64 bit Pin
wasimsharp18-Jul-08 0:10
wasimsharp18-Jul-08 0:10 
QuestionConsume a webservice in a WebApplicationnew Pin
AS@1317-Jul-08 23:37
AS@1317-Jul-08 23:37 
AnswerRe: Consume a webservice in a WebApplicationnew Pin
N a v a n e e t h17-Jul-08 23:43
N a v a n e e t h17-Jul-08 23:43 
QuestionRe: Consume a webservice in a WebApplicationnew Pin
AS@1317-Jul-08 23:52
AS@1317-Jul-08 23:52 
AnswerRe: Consume a webservice in a WebApplicationnew Pin
enginço18-Jul-08 0:03
enginço18-Jul-08 0:03 
QuestionRe: Consume a webservice in a WebApplicationnew Pin
AS@1318-Jul-08 0:11
AS@1318-Jul-08 0:11 
AnswerRe: Consume a webservice in a WebApplicationnew Pin
enginço18-Jul-08 0:35
enginço18-Jul-08 0:35 
QuestionRe: Consume a webservice in a WebApplicationnew Pin
AS@1318-Jul-08 0:56
AS@1318-Jul-08 0:56 

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.