Collect Information From Core Temp And Use It As A Variable Within VB?
Dec 25, 2011
collect information from core temp ( how to gain information about the CPU directly from the motherboard or windows E.G temperature CPU name ) and use it as a variable within VB.
View 3 Replies
ADVERTISEMENT
Dec 15, 2009
I'm creating temp file to hold and pass information. What is prefered, XML or text files, and why?
View 3 Replies
Jul 31, 2011
In my program; I need to collect a sequence of events in a variable of some sort. Each time the Sub is initiated, it should add one random event to the sequence (so that it gets longer each time) and then run through the sequence.This is rather difficult to express.What I'm trying to do, is create a Simon Says game with the four buttons.After the sequence goes through blinking the buttons, the program must then be able to capture the sequence of button presses by the user and match that to the sequence that the program ran.So, I need to be able to keep track of two sequences in a variable. Arrays?
View 3 Replies
Dec 22, 2009
I have a function that returns a date. I want to use a modal window to get the datte value from the user and pass it into the function.
View 1 Replies
Jan 29, 2010
I'm using VB 2008, and I have a dual core computer.Is it possible to make a code that sends one application or program in 1 core, and other application in the other core?
View 1 Replies
Oct 12, 2010
How to get the file path of the Temp directory (% temp%)? I use Visual Basic 2010
View 1 Replies
May 21, 2009
Am trying to copy contents of file temp.fxl to temp.seq. I want them to look exactly them. I don't want to copy the file though. I use the following code
Dim fs As New FileStream("c:\fxlate\output\temp.fxl", FileMode.Open, FileAccess.Read)
Dim s As New StreamReader(fs)
[Code].....
With such simple code, the last line in temp.seq is truncated as attached and the size of the file is smaller than temp.fxl. See attached files. What do I need to do on the above code. Is VB.NET failing to write 1024 characters on one line.
View 2 Replies
Jun 19, 2011
I have an array of people stored in a custom structure array... how can i copy this array to a temp array so that the temp array has all the same values as the original custom array?
View 4 Replies
Feb 28, 2011
am explaining this stupidly, but I'm still very much a VB newbie. This is a question about uni work, but it's not an assignment/test, just a little optional extension task.I have three text boxes, the first one is where the person's name is entered and the next two are where you enter the (same) person's score for two tests they have completed.
View 4 Replies
Dec 9, 2011
I am almost finished my project for a vb database app, but lack the apparent knowledge to make this last connection. My listbox populates fine on form_load. I have identified the "category id number" from the database as the identifier for my information to be displayed (from that field). The variable catID returns the proper "category id" number to match the information to be returned when clicked (a description is part of the field for the appropriate number)
I presume the extra sub procedure I wrote for another daCategory = New OleDbDataAdapter is probably not necessary, but I'm very confused. How do i QUERY the information from the database with variable catID? tblSamples.Category(#) to return tblSamples.description to textbox when called from the listbox. I am not/will not use a databinding approach. [Code]
View 1 Replies
Feb 9, 2011
i have intel core quad cpu but my program cant use more than one of cores(it use 25% of cpu power but i want use 50% and more).
affinity is "<All Processors>" and all of cores are selected.
is there any way can use more than 50% of cpu power.
View 6 Replies
Dec 21, 2009
how i can set a certain thread to run on the 2nd core for eg...
View 8 Replies
Oct 15, 2010
For loop CPU 25% single core
View 6 Replies
Oct 18, 2011
I have a VB.NET app that spawns several threads for performing XML parsing/database interaction. Only one of my cores (only have 2 currently) is being used right now.I've looked at Task Parallelism in .NET 4 but I need to be able to start a task at different times (not all at once).Is it possible to split up the threads (currently 6) so that 3 run on each core? Also, if I don't want to limit my threads to 6, how can I check CPU/memory programmatically to find out if I can start another thread.
View 2 Replies
May 20, 2012
I've been trying, without any luck whatsoever, to figure out how to use the Core Audio API in VB 2010. I started by downloading a wrapper dll located here: [URL]
[Code]...
View 2 Replies
Jan 24, 2012
My application waits for the user to click twice to draw a rectangle on an image, and use the rectangle to create a clone and save it. Then it restarts with the next rectangle. When I work on a large image (10800x7236) after a few cycles I get an out of memory error. but I still don't understand what's going on, and I would appreciate if some expert out there clarified why it didn't work before and it works now. This is the snippet executed after the user clicks twice, and fails after 5-6 cycles:
[Code]....
View 1 Replies
Jul 26, 2011
My site has been running fine for sometime now until recently I see in the event viewer a null reference exception in the DNN core:
DotNetNuke.Common.Globals.GetStatus() in
F:BuildsMaintenanceWorkingDirectoryLibraryCommonGlobals.vb:line
1125 at DotNetNuke.Common.Initialize.InitializeApp(HttpApplication
app) in
[code]....
the line 1125 is:
_Status = UpgradeStatus.None
Which is a property of the Globals class and an Enum Also when this happens it doesnt just do it once then sort its self it does it roughly every minute for an hour or so.I made sure all dataprovider.instances are either in a using or a try catch finally or self closing(if the reader is not used)?
View 2 Replies
Aug 2, 2010
Trying to make a badly archictected system work. In doing so we have ourselves in a postion of shelling mulitple instances of a program and managing the running processes. On startup the shelled program is CPU intensive and we need to limit the rate that we initiate the instances based on the CPU load. How do you calculate the CPU load of a multicore system?
View 1 Replies
Feb 24, 2009
How can i change a process using only 1 core instead of 2 cores? Also, how can I set different prioritys to each process?As it does not save the settings which i put to each process in taskmanager on restart, i decided to make a program so i could simply click a button so it would change the settings for each process i want.For example:With a simple button click it changes msnmsgr.exe priority to low and makes it use only the 1st core.
View 2 Replies
Feb 8, 2012
How can i get the core and memory clocks of the gpu using the Win32_VideoController?
View 1 Replies
Feb 5, 2010
Somehow the reference to System.Core got removed from one of my projects, which I think is causing some issues. If I try to re-add it to my references I get a message saying "A reference to 'System.Core' could not be added. This component is already automatically referenced by the build system". I think I need this reference because it is there when I start a new project by default
View 1 Replies
Apr 20, 2012
I'm getting the error below trying to open a new workbook in Excel:
Imports Microsoft.Office.Core
...
Dim myExcel As New Excel.Application
[code].....
View 1 Replies
Mar 11, 2012
I currently have code that creates and inserts ~175,000 names into a table.
What is the quickest way to collect a random first and last name? So far I have tried, Reading from two text files where every name is one line it takes ~2:30 minutes Reading from a table with [first][last] columns takes ~4 minutes
View 4 Replies
Jul 14, 2009
I am working on maintaining someone else's code that is using multithreading, via two methods:
1: ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf ReadData), objUpdateItem)
2: Dim aThread As New Thread(AddressOf LoadCache) aThread.Start()
However, on a dual core machine, I am only getting 50% CPU utlilization, and on a dual core with hyperthreadin enabled machine, I am only getting 25% CPU utilization. Obviously threading is extremely complicated, but this behaviour would seem to indicate that I am not understanding some simple fundamental fact?
[code]...
And this is occurring in a recursive function, so the QueueUserWorkItem can be executing multiple times, which in turn then executes exactly one new thread via the aThread.Start
Hopefully that gives a decent idea of how things are happening. under this scenario, should this not theoretically pin both cores, rather than maxing out at 100% on one core, while the other core is essentially idle?
View 6 Replies
Nov 29, 2011
I was going to hijack another, related, thread to ask this, but I figured it derserved its own thread.The question I have is whether or not anybody has done sufficient testing to show whether a mutlithreaded program running on a multi-core system will spread the threads across all available cores, or whether it has some affinity for the core used by the main process (UI thread, or whatever it may be)? The reason I ask is because I remember a discussion over in General Computing where somebody showed that, for at least one case, all the threads were splitting time on a single core of a multi-core processor. I am wondering if that is the typical behavior, or an isolated case?
View 23 Replies
Aug 27, 2010
After I upgraded from Windows Xp to Windows 7 on any dual core cpu machine my programs that use a simple timer function run incorrectly. The program works with the exact same hardware under Windows Xp and Windows Server 2003. I am using Visual Studio 2005 to write .NET Visual Basic programs that use 2 timers to count down. The first timer, timer1, is set to a value say 150000 ms (150 seconds). The second timer, timer2, is set to 1000ms (1 second). Both timers are enabled one right after the other from a button click event and begin. The timer2 routine running every second updates a label counting down the seconds. When timer1 fires it disables itself and exits. Timer2 also checks to see if timer1 is still running if it is not it will stop. Under Windows Xp and Windows Server 2003 the resulting count in the label is 0 when timer2 detects timer1 has finished. Under Windows 7 when timer1 stops timer2 is not at 0 it is 3 for 150 seconds and gets larger the more timer1 is increased. It appears to me timer2 is not being fired every 1000ms as it was under Windows Xp.
I have included the Visual Basic code below. If you want to test it just run Visual Studio and create a new project. Put the buttons, numericupdown, and labels in your form and past my code into the correct buttons. I have used these type of timer events for years without any problems unit Windows 7. Windows 7 on a single core Pentium 4 with hyperthreading turned on works fine. Windows 7 on a dual core E6500 fails, Windows Server 2003 works.
Public Class Form1
Dim I As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[CODE]...
View 2 Replies
Sep 12, 2011
I have a multi-user app which consists of a Windows form (VS2008), and a SQL Express 2008 database. I'm already detecting if the dataset has changed before the user closes the form so I can prompt them to save their changes. What I'd like to do is to capture the changes they've made, and write them to a database table so that users can track all changes made to each record on the DB.What is the best way to grab hold of the data changes before they're written back to the DB and also grab the original records?
View 1 Replies
Nov 18, 2009
I have a SQL server table that has a list of Usernames and a list of points ranging from 1 to 10,000.I want to display the number of points in my VB.NET program from the username given. For example, if I type in "john" in the first box the program will give me a message box saying whatever amount of points "john" has. I'm not really sure about
This is the Table Structure:
Usernames Points
-----------------------------
[code].....
View 1 Replies
Mar 3, 2010
I'm simulating some threading in a Windows Service, and the Thread.Start routine for each of my threads points directly to the following:
Private WithEvents CheckForOrdersTimer As System.Threading.Timer
Private Sub timerCheckForContracts_Tick(ByVal stateInfo As Object)
' Ticks every 5 seconds, then spawns threads until we're at our max
Do
[code]....
the threads aren't even doing anything yet, but with more than two threads running at the same time, my processor (Core 2 Duo 2.4 w/ 4GB) gets pegged and Windows gets really sluggish. According to what I've read, Thread.Sleep shouldn't be consuming any resources at all while it waits, but it may as well be running in a tight timing loop.
EDIT: Per the requests, I've expanded the amount of code I'm using. I was initially doing some database work before spawning each thread, but I've removed it and the processor maximization still occurs with just the code here (and, of course, the OnStart method for the Windows Service.
View 4 Replies
Mar 5, 2012
I'm simulating some threading in a Windows Service, and the Thread.Start routine for each of my threads points directly to the following:
Private WithEvents CheckForOrdersTimer As System.Threading.Timer
Private Sub timerCheckForContracts_Tick(ByVal stateInfo As Object)
' Ticks every 5 seconds, then spawns threads until we're at our max
[code].....
View 3 Replies