Click here to Skip to main content
15,903,362 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: dBase field called "Value" cannot be edited Pin
bobbymale779-Jan-09 12:59
bobbymale779-Jan-09 12:59 
QuestionClean way to have an abortable read for serial or TCP stream? Pin
supercat98-Jan-09 8:29
supercat98-Jan-09 8:29 
AnswerRe: Clean way to have an abortable read for serial or TCP stream? Pin
Mark Churchill8-Jan-09 11:08
Mark Churchill8-Jan-09 11:08 
GeneralRe: Clean way to have an abortable read for serial or TCP stream? Pin
supercat98-Jan-09 13:04
supercat98-Jan-09 13:04 
GeneralRe: Clean way to have an abortable read for serial or TCP stream? Pin
Colin Angus Mackay8-Jan-09 13:17
Colin Angus Mackay8-Jan-09 13:17 
GeneralRe: Clean way to have an abortable read for serial or TCP stream? [modified] Pin
supercat98-Jan-09 14:16
supercat98-Jan-09 14:16 
QuestionHow to get the %of cpu usage using WMI Pin
S.Rekka8-Jan-09 1:37
S.Rekka8-Jan-09 1:37 
AnswerRe: How to get the %of cpu usage using WMI Pin
Mark Salsbery8-Jan-09 6:09
Mark Salsbery8-Jan-09 6:09 
S.Rekka wrote:
the result is not correct


How so?

Are you calling this at intervals?

This works for me:
for (int i = 0; i < 100; i++)
{
    ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT PercentProcessorTime FROM Win32_PerfFormattedData_PerfOS_Processor WHERE Name='_Total'");
    foreach (ManagementObject objMgmt in searcher.Get())
    {
        Console.WriteLine("PercentProcessorTime: {0}%", objMgmt["PercentProcessorTime"].ToString());
    }

    Thread.Sleep(100);
}


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: How to get the %of cpu usage using WMI Pin
S.Rekka8-Jan-09 18:12
S.Rekka8-Jan-09 18:12 
QuestionCalling an exe from init() method Pin
ajayvictor0077-Jan-09 23:02
ajayvictor0077-Jan-09 23:02 
AnswerRe: Calling an exe from init() method Pin
Brij8-Jan-09 1:53
mentorBrij8-Jan-09 1:53 
QuestionSCSF & "neutral culture assembly exception" [modified] Pin
A_Fisher7-Jan-09 21:59
A_Fisher7-Jan-09 21:59 
AnswerRe: SCSF & "neutral culture assembly exception" Pin
Shaun Wilde8-Jan-09 8:43
Shaun Wilde8-Jan-09 8:43 
QuestionImages not appearing in delivered mail Pin
Vivek Bhatnagar7-Jan-09 21:23
Vivek Bhatnagar7-Jan-09 21:23 
AnswerRe: Images not appearing in delivered mail Pin
Not Active8-Jan-09 3:48
mentorNot Active8-Jan-09 3:48 
GeneralKinda OT / maybe a little dumb: Images not appearing in delivered mail Pin
EliottA8-Jan-09 4:38
EliottA8-Jan-09 4:38 
GeneralRe: Kinda OT / maybe a little dumb: Images not appearing in delivered mail Pin
Not Active8-Jan-09 5:18
mentorNot Active8-Jan-09 5:18 
GeneralRe: Kinda OT / maybe a little dumb: Images not appearing in delivered mail Pin
EliottA8-Jan-09 5:29
EliottA8-Jan-09 5:29 
AnswerRe: Images not appearing in delivered mail Pin
Aman Bhullar8-Jan-09 6:11
Aman Bhullar8-Jan-09 6:11 
GeneralRe: Images not appearing in delivered mail Pin
EliottA8-Jan-09 6:32
EliottA8-Jan-09 6:32 
GeneralRe: Images not appearing in delivered mail Pin
Vivek Bhatnagar8-Jan-09 18:45
Vivek Bhatnagar8-Jan-09 18:45 
GeneralRe: Images not appearing in delivered mail Pin
Aman Bhullar9-Jan-09 4:44
Aman Bhullar9-Jan-09 4:44 
AnswerRe: Images not appearing in delivered mail Pin
Vivek Bhatnagar8-Jan-09 18:38
Vivek Bhatnagar8-Jan-09 18:38 
GeneralRe: Images not appearing in delivered mail Pin
EliottA9-Jan-09 5:19
EliottA9-Jan-09 5:19 
GeneralRe: Images not appearing in delivered mail Pin
Vivek Bhatnagar11-Jan-09 18:50
Vivek Bhatnagar11-Jan-09 18:50 

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.