Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
QuestionRegarding the dll Pin
Sasmi_Office22-Oct-09 22:45
Sasmi_Office22-Oct-09 22:45 
AnswerRe: Regarding the dll Pin
Vimalsoft(Pty) Ltd22-Oct-09 23:52
professionalVimalsoft(Pty) Ltd22-Oct-09 23:52 
QuestionForm Invisible and Cpu up to 50% Pin
Escocia22-Oct-09 21:51
Escocia22-Oct-09 21:51 
AnswerMessage Closed Pin
22-Oct-09 21:56
stancrm22-Oct-09 21:56 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia22-Oct-09 22:45
Escocia22-Oct-09 22:45 
GeneralMessage Closed Pin
22-Oct-09 23:10
stancrm22-Oct-09 23:10 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Christian Graus22-Oct-09 23:25
protectorChristian Graus22-Oct-09 23:25 
AnswerRe: Form Invisible and Cpu up to 50% Pin
Christian Graus22-Oct-09 22:05
protectorChristian Graus22-Oct-09 22:05 
Escocia wrote:
My real problem is that I need that this program runs constantly and for this reason I have created a while(true) loop.


This is dumb. It forces your code to work to do nothing, and that's why your CPU is 50% ( you're on a dual core and only one core is being needlessly worked by your code ).


Escocia wrote:
The solution "Windows Service" is not valid because these are started before logon and these have not the
Permissions of the Domain.


Actually, that's not necessarily true, but, you don't need a service, your form will always run anyhow. If you need to check something and you can't watch for it, write a timer to check as often as is appropriate ( once a second, twice a second, once every ten seconds, it's up to you ).

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia22-Oct-09 22:57
Escocia22-Oct-09 22:57 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Christian Graus22-Oct-09 23:23
protectorChristian Graus22-Oct-09 23:23 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia23-Oct-09 0:06
Escocia23-Oct-09 0:06 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Christian Graus23-Oct-09 0:10
protectorChristian Graus23-Oct-09 0:10 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia23-Oct-09 0:39
Escocia23-Oct-09 0:39 
Question[Message Deleted] Pin
sameercodes22-Oct-09 21:33
sameercodes22-Oct-09 21:33 
AnswerRe: WPF toolkit datagrid: Capture Key Press Event Pin
Christian Graus22-Oct-09 21:49
protectorChristian Graus22-Oct-09 21:49 
QuestionDistortion Metafile in Clipboard Pin
alexcmk22-Oct-09 19:18
alexcmk22-Oct-09 19:18 
AnswerRe: Distortion Metafile in Clipboard Pin
Christian Graus22-Oct-09 19:19
protectorChristian Graus22-Oct-09 19:19 
GeneralRe: Distortion Metafile in Clipboard Pin
alexcmk22-Oct-09 21:52
alexcmk22-Oct-09 21:52 
GeneralRe: Distortion Metafile in Clipboard Pin
Christian Graus22-Oct-09 22:06
protectorChristian Graus22-Oct-09 22:06 
GeneralRe: Distortion Metafile in Clipboard Pin
alexcmk26-Oct-09 14:35
alexcmk26-Oct-09 14:35 
GeneralRe: Distortion Metafile in Clipboard Pin
alexcmk27-Oct-09 15:56
alexcmk27-Oct-09 15:56 
Questionmultiple socket connection Pin
Ajithevn22-Oct-09 18:22
Ajithevn22-Oct-09 18:22 
AnswerRe: multiple socket connection Pin
Rick van Woudenberg23-Oct-09 1:07
Rick van Woudenberg23-Oct-09 1:07 
AnswerRe: multiple socket connection Pin
Jimmanuel23-Oct-09 3:16
Jimmanuel23-Oct-09 3:16 
Question[Message Deleted] Pin
Sebastian T Xavier22-Oct-09 18:05
Sebastian T Xavier22-Oct-09 18:05 

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.