Click here to Skip to main content
15,888,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading command output from a database Pin
Muammar©13-Apr-08 21:28
Muammar©13-Apr-08 21:28 
GeneralRe: Reading command output from a database Pin
Christian Graus13-Apr-08 21:34
protectorChristian Graus13-Apr-08 21:34 
GeneralRe: Reading command output from a database Pin
Muammar©13-Apr-08 21:39
Muammar©13-Apr-08 21:39 
GeneralGot it working! [modified] Pin
Muammar©13-Apr-08 22:03
Muammar©13-Apr-08 22:03 
GeneralRe: Got it working! Pin
Christian Graus13-Apr-08 22:21
protectorChristian Graus13-Apr-08 22:21 
QuestionDataGridView double column cells validation Pin
Noemi Katinka13-Apr-08 20:44
Noemi Katinka13-Apr-08 20:44 
GeneralSQL Slow with Threading Pin
Expert Coming13-Apr-08 19:56
Expert Coming13-Apr-08 19:56 
GeneralRe: SQL Slow with Threading Pin
Guffa13-Apr-08 20:41
Guffa13-Apr-08 20:41 
Expert Coming wrote:
I am also not using any Thread.Sleeps...


There is most likely your problem.

Unless you have multiple CPUs or a multiple core CPU, only one thread at a time can run. Your thread that updates the progbress bar will update the progress bar once, then it will wait it's entire time slot for another change that will not happen, as it's blocking the thread that would do the change.

When there is nothing for the thread to do, you should do a Thread.Sleep(0) to give up the rest of the time slot so that another thead can use the CPU time.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: SQL Slow with Threading Pin
Expert Coming13-Apr-08 21:19
Expert Coming13-Apr-08 21:19 
QuestionHow to access controls which are in the Panel or Groupbox Pin
NarVish13-Apr-08 19:37
NarVish13-Apr-08 19:37 
AnswerRe: How to access controls which are in the Panel or Groupbox Pin
Expert Coming13-Apr-08 19:39
Expert Coming13-Apr-08 19:39 
GeneralRe: How to access controls which are in the Panel or Groupbox Pin
NarVish13-Apr-08 19:44
NarVish13-Apr-08 19:44 
GeneralRe: How to access controls which are in the Panel or Groupbox Pin
Expert Coming13-Apr-08 19:50
Expert Coming13-Apr-08 19:50 
AnswerRe: How to access controls which are in the Panel or Groupbox Pin
darkelv13-Apr-08 19:50
darkelv13-Apr-08 19:50 
Generalusing StretchDIBits() functions in C# Pin
Faysal13-Apr-08 18:01
Faysal13-Apr-08 18:01 
GeneralRe: using StretchDIBits() functions in C# Pin
Christian Graus13-Apr-08 18:12
protectorChristian Graus13-Apr-08 18:12 
GeneralBackup and Restore MySql Database Using C# Pin
joie717013-Apr-08 17:16
joie717013-Apr-08 17:16 
GeneralRe: Backup and Restore MySql Database Using C# Pin
Razvan Dimescu13-Apr-08 19:59
Razvan Dimescu13-Apr-08 19:59 
GeneralRe: Backup and Restore MySql Database Using C# Pin
joie717014-Apr-08 18:30
joie717014-Apr-08 18:30 
GeneralRe: Backup and Restore MySql Database Using C# Pin
Razvan Dimescu14-Apr-08 20:10
Razvan Dimescu14-Apr-08 20:10 
GeneralRe: Backup and Restore MySql Database Using C# Pin
joie717015-Apr-08 20:08
joie717015-Apr-08 20:08 
GeneralRe: Backup and Restore MySql Database Using C# Pin
Member 471213810-Mar-09 4:01
Member 471213810-Mar-09 4:01 
GeneralRe: Backup MySql Database Using C# Pin
Member 54962299-Apr-09 0:55
Member 54962299-Apr-09 0:55 
Generalshape area in images Pin
vodas13-Apr-08 15:49
vodas13-Apr-08 15:49 
GeneralRe: shape area in images Pin
Christian Graus13-Apr-08 15:54
protectorChristian Graus13-Apr-08 15:54 

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.