Click here to Skip to main content
15,887,307 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing parameters to anonymous functions in threads Pin
Andreas Saurwein11-Dec-08 11:42
Andreas Saurwein11-Dec-08 11:42 
GeneralRe: Passing parameters to anonymous functions in threads Pin
led mike11-Dec-08 11:56
led mike11-Dec-08 11:56 
GeneralRe: Passing parameters to anonymous functions in threads Pin
Andreas Saurwein11-Dec-08 12:31
Andreas Saurwein11-Dec-08 12:31 
GeneralRe: Passing parameters to anonymous functions in threads Pin
led mike16-Dec-08 10:19
led mike16-Dec-08 10:19 
GeneralRe: Passing parameters to anonymous functions in threads Pin
Andreas Saurwein16-Dec-08 11:24
Andreas Saurwein16-Dec-08 11:24 
GeneralRe: Passing parameters to anonymous functions in threads Pin
Ben Fair11-Dec-08 8:41
Ben Fair11-Dec-08 8:41 
GeneralRe: Passing parameters to anonymous functions in threads Pin
led mike11-Dec-08 8:44
led mike11-Dec-08 8:44 
AnswerRe: Passing parameters to anonymous functions in threads Pin
Nicholas Butler11-Dec-08 10:48
sitebuilderNicholas Butler11-Dec-08 10:48 
Is this a closures problem?

Have you tried:

foreach( var something in somethingelse )
{
  var local = something;
  add_a_job_to_the_threadpool(delegate { myFunction(local.Key, local.Value); } );
}


Nick

----------------------------------
Be excellent to each other Smile | :)

GeneralRe: Passing parameters to anonymous functions in threads Pin
Andreas Saurwein11-Dec-08 10:58
Andreas Saurwein11-Dec-08 10:58 
QuestionWeb analytic application Pin
Maverickcool11-Dec-08 7:08
Maverickcool11-Dec-08 7:08 
AnswerRe: Web analytic application Pin
led mike11-Dec-08 8:03
led mike11-Dec-08 8:03 
QuestionGridView ? Pin
tim_gunning11-Dec-08 6:34
tim_gunning11-Dec-08 6:34 
AnswerRe: GridView ? Pin
Lev Danielyan11-Dec-08 6:43
Lev Danielyan11-Dec-08 6:43 
QuestionImport Data into Access DataTable from another Access Database Pin
polishprogrammer11-Dec-08 5:54
polishprogrammer11-Dec-08 5:54 
QuestionYouTube API with C# Pin
bmx463711-Dec-08 4:40
bmx463711-Dec-08 4:40 
AnswerRe: YouTube API with C# PinPopular
#realJSOP11-Dec-08 4:51
mve#realJSOP11-Dec-08 4:51 
GeneralRe: YouTube API with C# Pin
bmx463711-Dec-08 4:54
bmx463711-Dec-08 4:54 
GeneralRe: YouTube API with C# PinPopular
#realJSOP11-Dec-08 4:55
mve#realJSOP11-Dec-08 4:55 
GeneralRe: YouTube API with C# Pin
Dalek Dave11-Dec-08 5:42
professionalDalek Dave11-Dec-08 5:42 
JokeRe: YouTube API with C# Pin
Paul Conrad11-Dec-08 6:41
professionalPaul Conrad11-Dec-08 6:41 
GeneralRe: YouTube API with C# Pin
carbon_golem11-Dec-08 5:19
carbon_golem11-Dec-08 5:19 
AnswerREPOST Pin
Dave Kreskowiak11-Dec-08 4:52
mveDave Kreskowiak11-Dec-08 4:52 
GeneralRe: REPOST PinPopular
#realJSOP11-Dec-08 4:54
mve#realJSOP11-Dec-08 4:54 
AnswerRe: YouTube API with C# PinPopular
led mike11-Dec-08 5:20
led mike11-Dec-08 5:20 
GeneralRe: YouTube API with C# Pin
bmx463711-Dec-08 5:28
bmx463711-Dec-08 5:28 

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.