Chaos Project

Game Development => Sea of Code => Topic started by: G_G on March 24, 2010, 10:41:24 pm

Title: Background Worker
Post by: G_G on March 24, 2010, 10:41:24 pm
Okay so I don't understand how to use it. I know what I need it for though. In Cybele when you go to upload a resource thats fairly big it freezes if you click off the form then it doesn't finish uploading. So I need the background worker to upload the file while the form is not active.

It also freezes while you're uploading and you click anywhere in the form. Maybe I don't need a background worker, maybe there's something wrong with my coding. Any help is appreciated.

EDIT: Okay the downloads and uploads are controlled the same way along with the progress bars. But it only freezes when you're uploading a file, but when you're downloading a file it doesn't freeze.  :<_<:
Title: Re: Background Worker
Post by: Zeriab on March 29, 2010, 05:59:41 am
Are you using the GUI update thread to download/upload files?  :O.o:
Title: Re: Background Worker
Post by: Ryex on March 29, 2010, 12:03:05 pm
he got it working as I understand and ya he basically was. now he is using a background worker
Title: Re: Background Worker
Post by: G_G on March 29, 2010, 05:08:42 pm
Yup forgot to post back here. I did get it working. Cybele is even more awesome now.