Re: *NEW* Process Manager
i cant get the file to download
Re: *NEW* Process Manager
I'm not able to download your project. You should check the link.
Also, you should check out my process manager and you'll find a lot information on different features you can add such as icons, process info, pausing and resuming, and much more.
Re: *NEW* Process Manager
I dont understand what the Initialized column is for as it just shows a number for some processes but a date for others, same for the ID column as that does not have a value for most of the processes.
PS did you know you can upload files directly to this forum so you dont have to use an external hosting site? :)
Re: *NEW* Process Manager
Quote:
Originally Posted by
chris128
I dont understand what the Initialized column is for as it just shows a number for some processes but a date for others, same for the ID column as that does not have a value for most of the processes.
PS did you know you can upload files directly to this forum so you dont have to use an external hosting site? :)
You were able to download it? Hm... :/
Oh. You just mean from the visual.
Yeah. That's strange.
Re: *NEW* Process Manager
Thanks guys, Umm ID etc. i just some controls i came across when i made this and decided to add. Umm Demon, Can you give me a link to yours, and I will reupload
Re: *NEW* Process Manager
Re: *NEW* Process Manager
I like the cpu progressbar at the bottom, but what about multi-core cpu's (or systems with more than 1 physical cpu, multi-core or not)? It'd be awesome if it showed one for each core/cpu
Re: *NEW* Process Manager
Quote:
Originally Posted by
JuggaloBrotha
I like the cpu progressbar at the bottom, but what about multi-core cpu's (or systems with more than 1 physical cpu, multi-core or not)? It'd be awesome if it showed one for each core/cpu
He'd probably have to utilize some APIs for that. I don't think there's a managed way to obtain that information for multiple cores.
That CPU progressbar, I think, get's overall usage. He could maybe use Performance counters.
Re: *NEW* Process Manager
I dunno how hard it is, I've seen it in other apps but I don't know if those other apps are managed code or not...
Re: *NEW* Process Manager
I was curious so had a go at using performance counters to track each CPU/Core and came up with the following (run from a timer)
vb Code:
Dim Counters As New PerformanceCounter("Processor", "% Processor Time")
For i As Integer = 0 To Environment.ProcessorCount - 1
Counters.InstanceName = i
DirectCast(Me.Controls("CpuProgressBar" & i + 1), ProgressBar).Value = Counters.NextValue
Next
of course this assumes that you have already added a progress bar for each CPU/Core and named it "CpuProgressBarX" where X is the number of the CPU/Core starting at 1.
However! This does not seem to work... the value that the performance counter returns is always 0 or 0.0394948 or something like that, even though that is the exact same performance counter that I can add to Perfmon and it shows the correct readings. So I'm a bit stumped!
Re: *NEW* Process Manager
I had the same thing, but found a way that worked for me by using a single rather than integer, Integers cannot do floating point numbers
vb Code:
Dim v As Single
v = Cpu1performanceCounter1.NextValue()
Cpu1progressbar.Value = CInt(v)
lblCpu1.Text = "CPU 01 - Usage: " & Convert.ToInt32(v).ToString & "%"
Re: *NEW* Process Manager
I know a full working way to do this, I will release it in a bit thanks.
Re: *NEW* Process Manager
*DOUBLE POST* SORRY! :(
Updated it check new download :)
Re: *NEW* Process Manager
What about quad core PCs? And how do you compensate for multi-thread processors that show up as double the original cores?
Re: *NEW* Process Manager
Not sure, stop working on this though. I just started 2 weeks or so ago haha, Thinking of something to make atm, simple.
Re: *NEW* Process Manager
Quote:
Originally Posted by
Cave
Not sure, stop working on this though. I just started 2 weeks or so ago haha, Thinking of something to make atm, simple.
Err... but this is simple. It's 60 lines of code. It doesn't get much simpler than this.
I only mentioned the quad core thing because your application is fixed for only operating dual core processors =/
Re: *NEW* Process Manager
Well, I could make it have like options, to select what you have, and I am not sure about quad, There is only 1 and 0 for the performance manager = /. Yeah 60 lines of code, but still. I am just new, i just have to MSDN alot of functions some times to learn them, I mean just have to take it slow.
Re: *NEW* Process Manager
Quote:
Originally Posted by
Cave
Well, I could make it have like options, to select what you have, and I am not sure about quad, There is only 1 and 0 for the performance manager = /. Yeah 60 lines of code, but still. I am just new, i just have to MSDN alot of functions some times to learn them, I mean just have to take it slow.
Of course, of course. If you haven't taken a look at the code for my process manager, I implore you to check it out.
It doesn't have any CPU features at the moment, but I think you can learn a lot about the processes, modules, and a ton of other functions that will help you out in other projects.
:D