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

C#

 
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 
Ok I just put this to the last one to make it easier... all of you have good points so I'll put this into one message.

First this is for a application that will be used by about 3 people, so do I have to have it threaded no. I've done a few apps in VB but they were all just a basic single worker to report back progress to the GUI in the form of a progress bar, nothing involved. So yes I'm using this one as a learning exp and to help speed it up some (it works fine now but takes a long time (over 2 min to run right now)). Now I know 2+ min isn't a long time for some things, but I already have it down to 1:45 with just the 2 workers I have going now. However the longest part of the app is this part I'm trying to do now which is aroun 1:10 (if I remember right, it's been a day or so since I last ran it with no threads).

Next: is there a way to lock a file like you can with a database table? This way I'd be able to check to see if that file is locked, if so wait what ever number of seconds and try again, or just keep beating away till it's free?

The other option of writing to two seperate files has another exciting part, the file/files are on a network drive. As of now it does write pretty quick, but that is writing to just one file.

I think I got everything there... I'll keep plugging away in the mean time.
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 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 8:28
MacRaider410-Feb-11 8:28 
AnswerRe: Can you run the same function from two backgroundWorkers Pin
Luc Pattyn10-Feb-11 8:39
sitebuilderLuc Pattyn10-Feb-11 8:39 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 8:51
MacRaider410-Feb-11 8:51 
AnswerRe: Can you run the same function from two backgroundWorkers Pin
Luc Pattyn10-Feb-11 9:03
sitebuilderLuc Pattyn10-Feb-11 9:03 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
PIEBALDconsult10-Feb-11 9:06
mvePIEBALDconsult10-Feb-11 9:06 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
PIEBALDconsult10-Feb-11 8:55
mvePIEBALDconsult10-Feb-11 8:55 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 9:06
MacRaider410-Feb-11 9:06 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
Luc Pattyn10-Feb-11 9:16
sitebuilderLuc Pattyn10-Feb-11 9:16 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
PIEBALDconsult10-Feb-11 8:48
mvePIEBALDconsult10-Feb-11 8:48 
GeneralRe: Can you run the same function from two backgroundWorkers Pin
MacRaider410-Feb-11 9:03
MacRaider410-Feb-11 9:03 

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.