Click here to Skip to main content
15,901,505 members
Home / Discussions / Windows Forms
   

Windows Forms

 
Generalreply plz Pin
chellam.r2-Mar-08 20:44
chellam.r2-Mar-08 20:44 
GeneralRe: reply plz Pin
Paul Conrad7-Mar-08 14:50
professionalPaul Conrad7-Mar-08 14:50 
GeneralForm with BackGroundWorkers Pin
Herman<T>.Instance25-Feb-08 2:59
Herman<T>.Instance25-Feb-08 2:59 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn25-Feb-08 5:09
sitebuilderLuc Pattyn25-Feb-08 5:09 
GeneralRe: Form with BackGroundWorkers Pin
Herman<T>.Instance26-Feb-08 2:14
Herman<T>.Instance26-Feb-08 2:14 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn26-Feb-08 2:31
sitebuilderLuc Pattyn26-Feb-08 2:31 
GeneralRe: Form with BackGroundWorkers Pin
Herman<T>.Instance26-Feb-08 4:18
Herman<T>.Instance26-Feb-08 4:18 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn26-Feb-08 4:49
sitebuilderLuc Pattyn26-Feb-08 4:49 
Hi,

there is nothing fundamentally wrong it what you told here; this could work just fine.
The amount of work is actually irrelevant: when implemented properly the GUI should stay
alive and responsive at all times, and all the work is done, well, in the background.

Now here is maybe a clue: if one of your BGWs is keeping the database very busy
(and if the DB is on another machine, it would not show in your client's CPU activity),
then any other DB request may be delayed for quite some time. Now lets assume something
else in the GUI thread is trying to do a DB access too, that could temporarily
slow down the GUI so it looks frozen, no longer shows the menu bar, whatever.
And that something could be a Window.Forms.Timer doing some simple job periodically...

Of course this is just a hunch; anyway, I suggest you look for an indirect way in which
the GUI gets hampered by the BGW (stealing too many CPU cycles due to thread priority,
stealing DB bandwitdh, a locked object, a locked file, whatever).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Form with BackGroundWorkers [modified] Pin
Herman<T>.Instance26-Feb-08 5:00
Herman<T>.Instance26-Feb-08 5:00 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn26-Feb-08 5:14
sitebuilderLuc Pattyn26-Feb-08 5:14 
GeneralRe: Form with BackGroundWorkers Pin
Herman<T>.Instance26-Feb-08 6:03
Herman<T>.Instance26-Feb-08 6:03 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn26-Feb-08 6:09
sitebuilderLuc Pattyn26-Feb-08 6:09 
GeneralRe: Form with BackGroundWorkers Pin
Herman<T>.Instance26-Feb-08 23:01
Herman<T>.Instance26-Feb-08 23:01 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn26-Feb-08 23:50
sitebuilderLuc Pattyn26-Feb-08 23:50 
GeneralRe: Form with BackGroundWorkers [modified] Pin
Herman<T>.Instance27-Feb-08 1:15
Herman<T>.Instance27-Feb-08 1:15 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn27-Feb-08 4:04
sitebuilderLuc Pattyn27-Feb-08 4:04 
Questiondocking and floating window Pin
algates002724-Feb-08 19:28
algates002724-Feb-08 19:28 
GeneralRe: docking and floating window Pin
John_Adams24-Feb-08 22:04
John_Adams24-Feb-08 22:04 
GeneralInherited ComboBox Pin
Brady Kelly23-Feb-08 23:26
Brady Kelly23-Feb-08 23:26 
GeneralRe: Inherited ComboBox Pin
darkelv24-Feb-08 6:49
darkelv24-Feb-08 6:49 
GeneralRe: Inherited ComboBox Pin
Brady Kelly24-Feb-08 7:19
Brady Kelly24-Feb-08 7:19 
GeneralRe: Inherited ComboBox Pin
Brady Kelly26-Feb-08 1:48
Brady Kelly26-Feb-08 1:48 
GeneralRe: Inherited ComboBox Pin
Ed.Poore24-Feb-08 7:26
Ed.Poore24-Feb-08 7:26 
Generalrichtextboxes Pin
jazy121-Feb-08 21:29
jazy121-Feb-08 21:29 
GeneralRe: richtextboxes Pin
Christian Graus21-Feb-08 23:42
protectorChristian Graus21-Feb-08 23:42 

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.