Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 11:32
sitebuilderLuc Pattyn13-Apr-10 11:32 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 11:49
William Winner13-Apr-10 11:49 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 12:04
sitebuilderLuc Pattyn13-Apr-10 12:04 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment [modified] Pin
William Winner13-Apr-10 12:15
William Winner13-Apr-10 12:15 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 13:04
sitebuilderLuc Pattyn13-Apr-10 13:04 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 13:18
William Winner13-Apr-10 13:18 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 13:34
sitebuilderLuc Pattyn13-Apr-10 13:34 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner16-Apr-10 10:12
William Winner16-Apr-10 10:12 
I figure it's going to have something to do with the initial program that calls it. Something in that program is screwing it up in some major ways.

I ended up trying to run it as an external process. And, it starts to work. It starts the form up, starts loading the database in the background. The events from the loading are firing correctly...and then for no apparent reason, it just stops loading the database. The UI is still functional and still works, except for the parts relying on the parts of the database that were not loaded.

I made a few changes to the code as far as what was output to the StatusLabel so that I could track the progress and it almost seems like a memory issue...as in, the program that called the process set some limits on the memory available to the program. I have 2GB of RAM and the program gets to about 34 MB and then quits the loading. Running the exact same program from a test app runs it fine. The only difference is the program that called it.

I ended up forgoing the whole thing and just loading the database and serializing the object that I created. Doing that and deserializing the object works fine. It just means that I have to implement a user option for updating the object.

The program running it just seems to screw up anything I write for it to do. It's quite frustrating. Anyway, the newest update is supposed to support multi-threading better so maybe with the newer version it will work the way that I want. Until then, a redesign of the process was the only solution.

Thanks for the help.
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn16-Apr-10 10:26
sitebuilderLuc Pattyn16-Apr-10 10:26 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 11:50
William Winner13-Apr-10 11:50 
QuestionKernelbase error on Server 2008 Pin
Paladin200013-Apr-10 9:05
Paladin200013-Apr-10 9:05 
AnswerRe: Kernelbase error on Server 2008 Pin
Paw Jershauge13-Apr-10 10:45
Paw Jershauge13-Apr-10 10:45 
AnswerRe: Kernelbase error on Server 2008 Pin
mitch_olgren30-Jul-10 5:20
mitch_olgren30-Jul-10 5:20 
GeneralRe: Kernelbase error on Server 2008 Pin
Paladin200030-Jul-10 6:04
Paladin200030-Jul-10 6:04 
QuestionDoes anyone encountered problems with using of multiple TCP channels in .NET remoting app? [modified] Pin
Slava_K13-Apr-10 8:28
Slava_K13-Apr-10 8:28 
AnswerRe: Does anyone encountered problems with using of multiple TCP channels in .NET remoting app? Pin
thugthug15-Apr-10 5:17
thugthug15-Apr-10 5:17 
QuestionNPlot - how do I not show weekend dates Pin
boreland13-Apr-10 7:36
boreland13-Apr-10 7:36 
QuestionBackground Worker with Multiple Progress Bars Pin
eddieangel13-Apr-10 7:07
eddieangel13-Apr-10 7:07 
AnswerRe: Background Worker with Multiple Progress Bars Pin
Luc Pattyn13-Apr-10 7:23
sitebuilderLuc Pattyn13-Apr-10 7:23 
GeneralRe: Background Worker with Multiple Progress Bars Pin
eddieangel13-Apr-10 8:47
eddieangel13-Apr-10 8:47 
GeneralRe: Background Worker with Multiple Progress Bars Pin
Luc Pattyn13-Apr-10 9:55
sitebuilderLuc Pattyn13-Apr-10 9:55 
GeneralRe: Background Worker with Multiple Progress Bars Pin
eddieangel13-Apr-10 13:46
eddieangel13-Apr-10 13:46 
QuestionPassing different variable types Pin
mprice21413-Apr-10 4:51
mprice21413-Apr-10 4:51 
AnswerRe: Passing different variable types Pin
Luc Pattyn13-Apr-10 5:54
sitebuilderLuc Pattyn13-Apr-10 5:54 
GeneralRe: Passing different variable types Pin
dan!sh 13-Apr-10 6:12
professional dan!sh 13-Apr-10 6:12 

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.