Click here to Skip to main content
15,890,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling destructor in C# - observer pattern problem Pin
Henry Minute10-Feb-11 13:34
Henry Minute10-Feb-11 13:34 
GeneralRe: Calling destructor in C# - observer pattern problem Pin
Yusuf10-Feb-11 16:16
Yusuf10-Feb-11 16:16 
GeneralRe: Calling destructor in C# - observer pattern problem Pin
Dave Kreskowiak10-Feb-11 17:31
mveDave Kreskowiak10-Feb-11 17:31 
GeneralRe: Calling destructor in C# - observer pattern problem Pin
AspDotNetDev10-Feb-11 19:12
protectorAspDotNetDev10-Feb-11 19:12 
AnswerRe: Calling destructor in C# - observer pattern problem Pin
Henry Minute10-Feb-11 13:27
Henry Minute10-Feb-11 13:27 
AnswerRe: Calling destructor in C# - observer pattern problem Pin
AspDotNetDev10-Feb-11 13:58
protectorAspDotNetDev10-Feb-11 13:58 
AnswerRe: Calling destructor in C# - observer pattern problem Pin
DaveyM6910-Feb-11 21:28
professionalDaveyM6910-Feb-11 21:28 
QuestionCan you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 5:52
MacRaider410-Feb-11 5:52 
Using 2010.
What I would like to do is split up the work that a function is performing to two seperate backgroundWorkers. Is it possible to have each worker run off the same function or do I need to create a second function that is a copy of the first? Quick stright forward example:
Lets say I want to count to 100,000,000 and write each increment to a CSV file.
So "worker1" calls CountToWhatEver and start = 1 and end would equal 50,000,000 and "worker2" calls CountToWhatEver where start = 50,000,001 and end equals 100,000,000. Order in the csv file doesn't matter so long as it's there.
So if it were to read: 1,50000001,2,3,500000002,4,5,50000003 that would be fine.

Thanks in advance!
AnswerRe: Can you run the same function from two backgroundWorkers Pin
Ian Shlasko10-Feb-11 5:58
Ian Shlasko10-Feb-11 5:58 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 6:03
MacRaider410-Feb-11 6:03 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
Ian Shlasko10-Feb-11 6:15
Ian Shlasko10-Feb-11 6:15 
AnswerRe: Can you run the same function from two backgroundWorkers Pin
Luc Pattyn10-Feb-11 6:18
sitebuilderLuc Pattyn10-Feb-11 6:18 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 6:38
MacRaider410-Feb-11 6:38 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
PIEBALDconsult10-Feb-11 6:45
mvePIEBALDconsult10-Feb-11 6:45 
AnswerRe: Can you run the same function from two backgroundWorkers Pin
Luc Pattyn10-Feb-11 6:46
sitebuilderLuc Pattyn10-Feb-11 6:46 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
AspDotNetDev10-Feb-11 7:27
protectorAspDotNetDev10-Feb-11 7:27 
GeneralRe: Can you run the same function from two backgroundWorkers [modified] Pin
PIEBALDconsult10-Feb-11 6:42
mvePIEBALDconsult10-Feb-11 6:42 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 7:44
MacRaider410-Feb-11 7:44 
GeneralRe: Can you run the same function from two backgroundWorkers [modified] Pin
MacRaider410-Feb-11 8:13
MacRaider410-Feb-11 8:13 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
PIEBALDconsult10-Feb-11 8:21
mvePIEBALDconsult10-Feb-11 8:21 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 8:40
MacRaider410-Feb-11 8:40 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
Luc Pattyn10-Feb-11 8:22
sitebuilderLuc Pattyn10-Feb-11 8:22 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 9:17
MacRaider410-Feb-11 9:17 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
Luc Pattyn10-Feb-11 9:52
sitebuilderLuc Pattyn10-Feb-11 9:52 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
PIEBALDconsult10-Feb-11 8:18
mvePIEBALDconsult10-Feb-11 8: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.