Click here to Skip to main content
15,920,468 members
Home / Discussions / C#
   

C#

 
GeneralRe: Progress bar Issue Pin
Christian Graus15-Apr-07 23:27
protectorChristian Graus15-Apr-07 23:27 
Questionthread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 21:29
Krzysztof Gorgolewski15-Apr-07 21:29 
AnswerRe: thread is blocking the gui form, why? Pin
Christian Graus15-Apr-07 21:51
protectorChristian Graus15-Apr-07 21:51 
GeneralRe: thread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 22:05
Krzysztof Gorgolewski15-Apr-07 22:05 
GeneralRe: thread is blocking the gui form, why? Pin
Christian Graus15-Apr-07 22:46
protectorChristian Graus15-Apr-07 22:46 
AnswerRe: thread is blocking the gui form, why? Pin
Luc Pattyn15-Apr-07 21:52
sitebuilderLuc Pattyn15-Apr-07 21:52 
GeneralRe: thread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 22:15
Krzysztof Gorgolewski15-Apr-07 22:15 
GeneralRe: thread is blocking the gui form, why? Pin
Luc Pattyn15-Apr-07 22:27
sitebuilderLuc Pattyn15-Apr-07 22:27 
Hi Criss,

I know of no major difference between the threading model available in .NET and
the one in C++; they both are built on top of the Windows kernel capabilities.

The scheduler's behavior varies from one Windows version to the next;
the theoretical "highest ready process gets all, highest ready thread gets all"
is not followed, Microsoft has decided long time ago to reserve some CPU cycles
to the lower-priority ready processes/threads (but not enough to keep your
UI really responsive !). Nevertheless it is a bad idea to have a busy thread,
i.e. a thread that loops without explicitly relinquishing the CPU (as with a
Thread.Sleep or some semaphore wait or something).

So if you claim you have two implementations (C# and C++) that, running on the
same machine, behave quite differently, I am puzzled, that is the only
explanation I can offer is you have a bug somewhere.

I am worried about your "not missing some signals": you cannot prevent a Windows PC
from focusing on something else (networking, floppy/CD access, whatever).
To be safe, you should have full handshake (in my opinion that means the
"4 arrow" model) for all events you want to be sure to see. The only real
alternative is to have a real-time thread, which definitely is not supposed
to execute infinite loops...

BTW: what is the hardware interface and the comm protocol you are using ?
and what is the OS, and the .NET version ?

Smile | :)





Luc Pattyn

[My Articles]

GeneralRe: thread is blocking the gui form, why? Pin
Guffa15-Apr-07 22:32
Guffa15-Apr-07 22:32 
GeneralRe: thread is blocking the gui form, why? [modified] Pin
Krzysztof Gorgolewski15-Apr-07 22:45
Krzysztof Gorgolewski15-Apr-07 22:45 
AnswerRe: thread is blocking the gui form, why? Pin
Guffa16-Apr-07 0:38
Guffa16-Apr-07 0:38 
GeneralRe: thread is blocking the gui form, why? Pin
Krzysztof Gorgolewski16-Apr-07 1:12
Krzysztof Gorgolewski16-Apr-07 1:12 
AnswerRe: thread is blocking the gui form, why? Pin
Martin#15-Apr-07 21:55
Martin#15-Apr-07 21:55 
GeneralRe: thread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 22:20
Krzysztof Gorgolewski15-Apr-07 22:20 
GeneralRe: thread is blocking the gui form, why? Pin
Martin#15-Apr-07 22:36
Martin#15-Apr-07 22:36 
Answerthanks to all Pin
Krzysztof Gorgolewski16-Apr-07 4:57
Krzysztof Gorgolewski16-Apr-07 4:57 
Questionxpath Vs xml validation with xsd Pin
praveenkumar palla15-Apr-07 21:05
praveenkumar palla15-Apr-07 21:05 
AnswerRe: xpath Vs xml validation with xsd Pin
Stefan Troschuetz15-Apr-07 21:10
Stefan Troschuetz15-Apr-07 21:10 
GeneralRe: xpath Vs xml validation with xsd Pin
praveenkumar palla15-Apr-07 21:23
praveenkumar palla15-Apr-07 21:23 
GeneralRe: xpath Vs xml validation with xsd Pin
Stefan Troschuetz15-Apr-07 21:34
Stefan Troschuetz15-Apr-07 21:34 
GeneralRe: xpath Vs xml validation with xsd Pin
praveenkumar palla15-Apr-07 21:49
praveenkumar palla15-Apr-07 21:49 
GeneralRe: xpath Vs xml validation with xsd Pin
Stefan Troschuetz15-Apr-07 22:06
Stefan Troschuetz15-Apr-07 22:06 
AnswerARE YOU MENTAL ???? Pin
Christian Graus15-Apr-07 21:55
protectorChristian Graus15-Apr-07 21:55 
GeneralRe: ARE YOU MENTAL ???? Pin
Jaiprakash M Bankolli15-Apr-07 22:23
Jaiprakash M Bankolli15-Apr-07 22:23 
GeneralRe: ARE YOU MENTAL ???? Pin
Christian Graus15-Apr-07 22:48
protectorChristian Graus15-Apr-07 22:48 

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.