Monitor The Power Consumption?
Sep 18, 2009
I am looking to record information about the computers power consumption over time, is there any way I could do this using vb, I can get the current voltage from the processor but do not know the current therefore can not work out the wattage. I know of application which do have power consumption recorders but I would like to create my own.
View 1 Replies
ADVERTISEMENT
Jul 26, 2010
Im coding an application that needs to list all computers inside my LAN, and get the status of the machines ex. Power On, Power Off.. in order to Wake On Lan, or Turn it Off.. im using Visual Basic .Net.I all ready listed all machines, now i need to get the status of them..
View 5 Replies
Sep 9, 2010
I want to make a process monitor tool with WMI that monitor the processes created or deleted, but the code will not work. Note to reference System.Management,
CODE:
Code dowload:
CODE:
View 4 Replies
Jan 31, 2011
Can I monitor the registry for changes similar to how sysinternals process monitor does it in VB? I have checked many different articles and C# samples but not come any closer to getting an answer, I would like to know if there an easier way (a VB sample perhaps)that you folks can share. Ultimately I'd like to be able monitor other things too like file system, processes etc but wonder most about how the registry can be done in VB...Would using system.management be a start? Or WMI? if so is there a nice VB sample..
View 3 Replies
Apr 19, 2011
I've been profiling a WinForm's application using ".NET Memory Profiler".I can't quite seem to understand how my application is growing to 1GB, then 2GB, then 3GB of usage - according to windows task manager.
The private bytes using that tool, and "Total Bytes in All Heaps" shows only as 70MB or so. At the top of my list of instances hanging around, they are mostly String, or WeakReferences to lots of little objects.
All the application is doing is showing a form that loads data from a database. I repeat the show/dispose cycle of the form about 100 times and the growth is continuous.I've tried about 3 memory profiling tools now and none of them are showing me where this enormous amount of memory consumption is coming from.
View 3 Replies
Apr 5, 2011
I found what seems to be an easy and effective way to reduce the memory consumption of my vb.net app. What I need to know is how "correct" or "proper" is the method I'm using for my application and what exactly is going on behind the scenes that I should worry about? I want to release memory every time a form closes. Here is how I reduce the required memory of my program:[code...]
View 7 Replies
Jan 18, 2010
Target machine 4 core AMD I have an event that is raised my the main thread of the application. The event is consumed by several different classes in the application. I want them all to run concurrently up to the max cores available and then que the rest in order.The work routine in each class is relatively small but concurrency is the goal.Considering this.
A. Create a background worker on each classes initialization and have the event handler start the worker.
B. Create a delegate to the do-work sub that is called by the event handler
A- Pros - worker is only created once and reusable so only pay creation cost once.
A-Cons could create a ton of workers that consume resources eventually.
B- Pros Smaller thread pool
B- Cons Lot of overhead
View 2 Replies
Aug 15, 2011
According to the language specification guide for VB.NET Section 10.9.3. The enumerator expression in a for each loop is copied over into memory. If I have a list of 10000 objects that list will be in memory twice for the code below?
dim myList as new list(of bobs)
'put 10000 bobs in my list
for each x In myList
'do something
next
If I were generating the list from a linqQuery or some other such query it would make sense to generate that list at the for each loop statement thus not having the list in memory twice for example.
for each x in myList.where(function(x) x.name = Y)
'do something
next
If the LINQ query is unreadable on the for each loop, do I forgo readability and just put it on the for each loop declaration line? Should I declare the list in its own variable and just bite the bullet and have the list exist twice in memory?
View 1 Replies
Sep 16, 2011
I have a VB Function (in Visual Studio 2008 with .NET 3.5) that opens up a connection to an Oracle database and queries the database for information. Apparently after some trial and error, I discovered when the SQL statement is being processed and filling the dataset, it apparently is taking up too much memory trying to complete the task. I'm running into System.OutofMemory exceptions and other unpleasantness.I'm wondering, is there some sort of program out there to measure memory consumption of your SQL code that is being processed in a Visual Studio application?
View 1 Replies
Aug 25, 2009
I have a VB Function (in Visual Studio 2008 with .NET 3.5) that opens up a connection to an Oracle database and queries the database for information. Apparently after some trial and error, I discovered when the SQL statement is being processed and filling the dataset, it apparently is taking up too much memory trying to complete the task.I'm running into System.OutofMemory exceptions and other unpleasantness.I'm wondering, is there some sort of program out there to measure memory consumption of your SQL code that is being processed in a Visual Studio application?
View 2 Replies
Mar 11, 2010
I did a project (College Management) in vb.net 2008 which contains 13 forms in it. I designed the different functions in a different normal form, i.e. frmAdmission, frmSearch etc. When the project run's the main form is loaded. When user chooses a particular function say 'frmSearch' then the main form is unloaded and the form frmSearch is loaded. Now my lecturer told me to use MDI forms instead of normal forms because, normal forms takes larger memory than the MDI forms.
View 5 Replies
May 27, 2010
I have the following windows service file:
Imports System.ServiceProcess
Imports System.IO
Public Class fswService
[Code].....
2 problems: first, intellisense error saying: 'fswService' is a type and cannot be used as an expression. second, I can not figure out a way to pass on to the service the path of the folder to watch (which is stored at My.Settings.userPath).
View 2 Replies
Aug 29, 2011
i am doing a small project for my business and i got stuck with this 2 weeks ago and still no progress.I have an access db table "store" that has columns: (filldate,brand,model,plateno,mileage,litres) where i am storing these info each time a car in my company fills gas. For example8/25/2011,Renault,Megane,5487844,3943,20).What i want to do now is to display in a datagrid the total consumption of gas (litres) with the kilometers driven (mileage) between 2 dates.
View 2 Replies
May 29, 2010
i got a program i ran that says unable to install bla bla microsoft.visualbasic.powerpacks.vs version 9.0.0.0 be installed in the global assembly cache (GAC)first
View 2 Replies
Jul 12, 2010
component id for Visual Basic Power Pack 3.0.I need to determine if or not it is installed on my system for my setup.
View 3 Replies
Jul 12, 2009
I have a simple USB fan that just runs on the power from the USB port. I want to be able to turn of and on the fan from a simple application.
View 1 Replies
Feb 17, 2011
I'm trying to make a program to communicate with a power analyser (wt1600),Yokogawa gives an example programm in vb6.0.Now the problem is if i trie to recieve a message that i get an empty string.6.0..Declare Function TmReceiveBin Lib "tmctl.dll" Alias "TmReceive" (ByVal id As Long, ByRef buf As Any, ByVal blen As Long, ByRef rlen As Long) As Long [code]
View 1 Replies
Apr 23, 2011
I'm trying to make a program to communicate with a power analyser (wt1600),okogawa gives an example programm in vb6.0.Now the problem is if i trie to recieve a message that i get an empty string.6.0 Declare Function TmReceiveBin Lib "tmctl.dll" Alias "TmReceive" (ByVal id As Long, ByRef buf As Any, ByVal blen As Long, ByRef rlen As Long) As Long
View 4 Replies
Nov 16, 2009
I got a new laptop friday, it has windows 7 and its a 64 bit system. I installed visual studio 08. everything was fine until I opened one of my projects.Seems like the powerpacks drawing items no longer exist, there is only a pointer and reort viewer in the group now and all of the items that I have used in the past are keep my app from running.
View 2 Replies
Jan 29, 2012
Im coding a little app for my self that generates me a string. Recently I came to contact with a program that is about 50 times faster then mine just because it's using a graphics card GPU to do its calculations.I'm running 3 5770 and I think that 1 is enough for what I need, but I was wondering if it's possible to do such a thing.how can I use my GPU power to do my calculations? All my calculation is stored in 1 function in case you're wondering.
View 6 Replies
Sep 28, 2011
add notes in the powerpoint slides notes part under the powerpoint slide.using Microsoft.Office.Interop.PowerPoint. I'm using vb.net code.Now it si creating the ppt file and I can add text,comments,image. in the slide . But I need to add notes in the powerpoint slide , in the bottom part of the slide.
Here is the code i'm using for creating slides.
Dim oApp As Microsoft.Office.Interop.PowerPoint.Application
Dim oPres As Microsoft.Office.Interop.PowerPoint.Presentation
Dim oSlide As Microsoft.Office.Interop.PowerPoint.Slide
Dim bAssistantOn As Boolean
[code]....
View 1 Replies
May 10, 2009
I have a project with sql database and customer require to create this function .I mean when user use my program , they can delete, edit... but not still save yet. Suddenly power failure , and i want to recovery database when user turn on program again.
View 4 Replies
Nov 19, 2008
How do I copy data from excel to a power point slide using virtual basic. The idea is to generate automatic profile slides from excel data. I found some code on how to copy chart objects but not data.
View 2 Replies
Jun 21, 2010
i do my final project IDE for HTML.In that i decided to create a environment which is in power point.that is if i code HTML in rich text box i save it in a file and i have a web browser in the same page in bottom which shows the design of web-page simultaneously.in that i need to create a webbrowser in side which shows the thumnanil of the webpage.if i click a button of next for designing next page i need a another webbrowser in side like powerpoint
View 1 Replies
Jul 29, 2009
Application - Powerpoint 2003
VisualBasic - 2008
I want know, How can i extract the power point note text?
View 3 Replies
Apr 24, 2010
I have used the vb power pack for graphs and the following to files are included in the application files.
Microsoft.VisualBasic.PowerPacks.Vs.dll
System.Windows.Forms.DataVisualization.dll
But the install only works on the machine it was built on, if I take them out it installs but no graphs. How can I get this to install on all machines?
View 2 Replies
Jun 11, 2009
How to get the current power level of my laptop and if my charger is connected to my laptop. I want to make an application which tells me to put in the charger if my power level is under 40%, cause it has happened way to many times to me that my computer is shutting down when I etc. watch a movie or is programming. I'm using a HP DV9850EO.
View 4 Replies
Feb 21, 2011
I have been using these forums regularly for getting on 3 years now, and I must say you are all extremely clever! I am adding in a few rectangle at runtime, but I can't seem to display where I want. I want them in a panel I have on the form, I have tried 'me.panel1.controls.add' but because a rectangle isn't a control it naturally doesn't work.
View 1 Replies
Oct 28, 2009
Say I want to create a functionTry 5 timesThe function takes a function pointer to another function
function dosomething() as boolean
end function
function tryfivetime (thefunction as what?)
[code].....
View 5 Replies
Nov 25, 2010
How do I use DeviceIoControl Win32 API and the IOCTL in VB oder C#/C+/C++ to power down a USB port?
View 1 Replies